Switched to usage of FQCNs

This commit is contained in:
2025-11-26 15:48:40 +01:00
parent 990b22176f
commit 448f22b422
8 changed files with 52 additions and 52 deletions

View File

@@ -1,5 +1,5 @@
- name: backup | system setup | create backup config directory
file:
ansible.builtin.file:
path: "{{ item }}"
state: directory
loop:
@@ -8,24 +8,24 @@
- "/opt/backup/config"
- name: backup | system setup | create a link to backup script
file:
ansible.builtin.file:
path: "/opt/backup/bin/backup_remote.bash"
state: link
src: "{{ ansible_user_dir }}/bin/backup_remote.bash"
- name: backup | system setup | copy backup config files
copy:
ansible.builtin.copy:
dest: "/opt/backup/config/"
src: "config/"
- name: backup | system setup | copy backup config files 2
template:
ansible.builtin.template:
src: "backup_remote.j2"
dest: "/opt/backup/config/backup_remote.conf"
force: Yes
- name: backup | system setup | add entries to ssh_config
blockinfile:
ansible.builtin.blockinfile:
dest: "{{ ansible_user_dir }}/.ssh/config"
block: "{{ lookup('template', 'ssh_config.j2') }}"
marker: "## {mark} ANSIBLE MANAGED BLOCK FOR backup"