2022-03-16 11:59:37 +00:00
|
|
|
---
|
|
|
|
- name: Ensure the hostname package is installed and updated
|
2022-03-19 14:46:29 +00:00
|
|
|
ansible.builtin.package:
|
2022-03-16 11:59:37 +00:00
|
|
|
name: hostname
|
|
|
|
state: latest
|
|
|
|
- name: Ensure the personal-linux-config repositories is updated
|
|
|
|
ansible.builtin.git:
|
|
|
|
dest: /root/personal-linux-config
|
|
|
|
repo: https://git.bjphoster.com/b.pedini/personal-linux-config
|
|
|
|
clone: yes
|
|
|
|
update: yes
|
2022-03-16 12:25:17 +00:00
|
|
|
force: yes
|
2022-03-16 11:59:37 +00:00
|
|
|
- name: Ensure the config changes are deployed
|
|
|
|
ansible.builtin.shell:
|
2022-03-16 12:25:17 +00:00
|
|
|
cmd: sh -c "cd /root/personal-linux-config; bash /root/personal-linux-config/deploy.sh --server"
|