22 lines
828 B
YAML
22 lines
828 B
YAML
---
|
|
- name: (debian/rhel) Ensure the hostname package is installed and updated
|
|
ansible.builtin.package:
|
|
name: hostname
|
|
state: latest
|
|
where: ansible_facts["os_family"] == "Debian" or ansible_facts["os_family"] == "RHEL"
|
|
- name: (arch) Ensure the inetutils package is installed and updated
|
|
ansible.builtin.package:
|
|
name: inetutils
|
|
state: latest
|
|
where: ansible_facts["os_family"] == "Archlinux"
|
|
- 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
|
|
force: yes
|
|
- name: Ensure the config changes are deployed
|
|
ansible.builtin.shell:
|
|
cmd: sh -c "cd /root/personal-linux-config; bash /root/personal-linux-config/deploy.sh --server"
|