diff options
| -rw-r--r-- | ansible-practice/system/02-playbook-copy-bash-configs.yml | 19 |
1 files changed, 11 insertions, 8 deletions
diff --git a/ansible-practice/system/02-playbook-copy-bash-configs.yml b/ansible-practice/system/02-playbook-copy-bash-configs.yml index a1a54a7..adc1e4e 100644 --- a/ansible-practice/system/02-playbook-copy-bash-configs.yml +++ b/ansible-practice/system/02-playbook-copy-bash-configs.yml @@ -5,27 +5,30 @@ --- - name: "02 - custom ansible - copy bash config files w/ content" -# hosts: all - hosts: localhost - connection: local + hosts: all +# hosts: localhost +# connection: local tasks: - name: copy '.bash_aliases' ansible.builtin.copy: src: ~/repos/ansible_repo/ansible-practice/system/.bash_aliases - dest: "~/tmp/temp_files/.bash_aliases" + dest: "~/.bash_aliases" +# dest: "~/tmp/temp_files/.bash_aliases" mode: '0644' tags: ['bash_aliases'] - name: Creating '.bashrc' file with content - copy: + ansible.builtin.copy: src: ~/repos/ansible_repo/ansible-practice/system/.bashrc - dest: "~/tmp/temp_files/.bashrc" + dest: "~/.bashrc" +# dest: "~/tmp/temp_files/.bashrc" mode: '0644' tags: ['bashrc'] - name: Creating '.bash_profile' file with content - copy: + ansible.builtin.copy: src: ~/repos/ansible_repo/ansible-practice/system/.bash_profile - dest: "~/tmp/temp_files/.bash_profile" + dest: "~/.bash_profile" +# dest: "~/tmp/temp_files/.bash_profile" mode: '0644' tags: ['bash_profile'] |
