testing with FreeBSD on ec2
This commit is contained in:
parent
c1ab857680
commit
caa1e1fa65
4 changed files with 5 additions and 41 deletions
|
@ -18,40 +18,3 @@
|
|||
- "{{ users }}"
|
||||
- keys
|
||||
|
||||
|
||||
#- name: Check if user has ~/.ssh/config
|
||||
# stat:
|
||||
# path: "/home/{{ item.name }}/.ssh/config"
|
||||
# with_items: "{{ users }}"
|
||||
# register: sshconfig
|
||||
#
|
||||
#
|
||||
#- name: Create ~/.ssh/config when absent
|
||||
# file:
|
||||
# path: "/home/{{ item.item.name }}/.ssh/config"
|
||||
# owner: "{{ item.item.name }}"
|
||||
# group: "{{ item.item.name }}"
|
||||
# mode: 0600
|
||||
# state: touch
|
||||
# when: item.stat.exists == False
|
||||
# with_items:
|
||||
# - "{{ sshconfig.results }}"
|
||||
# no_log: True
|
||||
#
|
||||
#- name: Configure ~/.ssh/config
|
||||
# blockinfile:
|
||||
# path: "/home/{{ item.name }}/.ssh/config"
|
||||
# owner: "{{ item.name }}"
|
||||
# group: "{{ item.name }}"
|
||||
# mode: 0600
|
||||
# marker: "# {mark} ANSIBLE MANAGED BLOCK"
|
||||
# content: |
|
||||
# host {{ ansible_hostname }}
|
||||
# hostname {{ ansible_hostname }}
|
||||
# User {{ item.name }}
|
||||
# RemoteForward /home/{{ item.name }}/.gnupg/S.gpg-agent $HOME/.gnupg/S.gpg-agent
|
||||
# RemoteForward /home/{{ item.name }}/.gnupg/S.gpg-agent.ssh $HOME/.gnupg/S.gpg-agent.ssh
|
||||
# ServerAliveInterval 10
|
||||
# with_items:
|
||||
# - "{{ users }}"
|
||||
|
||||
|
|
|
@ -16,7 +16,7 @@
|
|||
uid: "{{ item.uid | default(omit) }}"
|
||||
shell: "{{ item.shell | default(default_shell) }}"
|
||||
append: yes
|
||||
no_log: True
|
||||
no_log: True
|
||||
with_items: "{{ users }}"
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue