diff options
| author | boom2 <blizzack@blizzack.com> | 2024-01-11 16:19:27 -0500 |
|---|---|---|
| committer | boom2 <blizzack@blizzack.com> | 2024-01-11 16:19:27 -0500 |
| commit | 0a7445b021669ed465859f287863c2899e3900a4 (patch) | |
| tree | 505410c75284155fdecce2daf68457aa77e923ca /home/.ansible/roles/new_host/tasks/backup_system_files.yml~ | |
| parent | e546f2ba800a55663ae04f18f8b01e86e1deac90 (diff) | |
- updated ip address of host
- removed old committed 'backup' files (with '~' appended)
Diffstat (limited to 'home/.ansible/roles/new_host/tasks/backup_system_files.yml~')
| -rw-r--r-- | home/.ansible/roles/new_host/tasks/backup_system_files.yml~ | 34 |
1 files changed, 0 insertions, 34 deletions
diff --git a/home/.ansible/roles/new_host/tasks/backup_system_files.yml~ b/home/.ansible/roles/new_host/tasks/backup_system_files.yml~ deleted file mode 100644 index 3c899e5..0000000 --- a/home/.ansible/roles/new_host/tasks/backup_system_files.yml~ +++ /dev/null @@ -1,34 +0,0 @@ ---- -- name: check backup directory status - ansible.builtin.stat: - path: "{{ backup_etc_dir }}" - register: backup_dir - tags: ['backup_dir_status'] - -- name: create backup directory if it does not exist - ansible.builtin.file: - path: "{{ backup_etc_dir }}" - state: directory - become: true - become_user: root - when: backup_dir.stat.isdir is not defined - tags: ['create_backup_dir'] - -- name: backup of system files - ansible.builtin.copy: - src: /etc/{{ item }} - remote_src: true - dest: "{{ backup_etc_dir }}/" - mode: preserve - with_items: - - hosts.allow - - hosts.deny - - inetd.conf - - sudoers - - hosts - - fstab - - inittab - become: true - become_user: root - when: backup_dir.stat.isdir is defined - tags: ['backup_files'] |
