added block markers so that the tasks do not overwrite
This commit is contained in:
@@ -21,6 +21,7 @@
|
||||
blockinfile:
|
||||
dest: "/{{ ansible_user_id }}/.ssh/config"
|
||||
block: "{{ lookup('template', 'ssh_config.j2') }}"
|
||||
marker: "{mark} ANSIBLE MANAGED BLOCK FOR backup"
|
||||
# template:
|
||||
# src: "ssh_config.j2"
|
||||
# dest: "{{ ansible_user_id }}/.ssh/config"
|
||||
|
||||
@@ -51,6 +51,7 @@
|
||||
backup: True
|
||||
owner: '{{ user }}'
|
||||
group: '{{ user }}'
|
||||
marker: "{mark} Basic ANSIBLE MANAGED BLOCK"
|
||||
|
||||
- name: users | {{ user }} | clone remote repos
|
||||
become: yes
|
||||
|
||||
Reference in New Issue
Block a user