From 2fd6a845dfe9ed6b3189c247928dc87d8f76d01a Mon Sep 17 00:00:00 2001 From: boom2 Date: Wed, 29 Nov 2023 16:28:07 -0500 Subject: update playbook to update a host...FOR REAL --- .../system/02-playbook-copy-bash-configs.yml | 19 +++++++++++-------- 1 file changed, 11 insertions(+), 8 deletions(-) (limited to 'ansible-practice/system') 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'] -- cgit v1.2.3-54-g00ecf