fixing incorrect username
https://github.com/stationgroup/ansible-experiments/issues/13#issue-361852126
This commit is contained in:
parent
81d6d4e8ff
commit
5d4c7f9f55
|
@ -4,7 +4,7 @@
|
|||
path: "/home/{{ item.name }}/.ssh/config"
|
||||
with_items: "{{ users }}"
|
||||
register: sshconfig
|
||||
when: item.name != 'freebsd' and ansible_os_family == 'Debian'
|
||||
when: item.name != 'ec2-user' and ansible_os_family == 'Debian'
|
||||
|
||||
- name: debug
|
||||
debug: "{{ item.item.name }}"
|
||||
|
@ -56,6 +56,6 @@
|
|||
with_items:
|
||||
- "{{ users }}"
|
||||
- skip_missing: true
|
||||
when: item.ssh_config is defined and item.state == "present" and item.name != 'freebsd' and ansible_os_family == 'Debian'
|
||||
when: item.ssh_config is defined and item.state == "present" and item.name != 'ec2-user' and ansible_os_family == 'Debian'
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue