made personal-linux-config compatible with RHEL environments

This commit is contained in:
Bryan Joshua Pedini 2022-06-25 22:49:10 +02:00
parent 98459fa7e5
commit b984e4e3b2
6 changed files with 25 additions and 8 deletions

View File

@ -4,4 +4,10 @@
tasks:
- import_tasks: tasks/debian-general/git.yml
when: ansible_facts["os_family"] == "Debian"
- import_tasks: tasks/general/personal-linux-config.yml
- import_tasks: tasks/debian-general/hostname-package.yml
when: ansible_facts["os_family"] == "Debian"
- import_tasks: tasks/rhel-general/git.yml
when: ansible_facts["os_family"] == "RedHat"
- import_tasks: tasks/rhel-general/hostname-package.yml
when: ansible_facts["os_family"] == "RedHat"
- import_tasks: tasks/general/personal-linux-config.yml

View File

@ -2,6 +2,5 @@
- name: Ensure git is installed and updated
ansible.builtin.apt:
update_cache: yes
cache_valid_time: 0
name: git
state: latest

View File

@ -0,0 +1,6 @@
---
- name: Ensure the hostname package is installed and updated
ansible.builtin.apt:
update_cache: yes
name: hostname
state: latest

View File

@ -1,10 +1,4 @@
---
- name: Ensure the hostname package is installed and updated
ansible.builtin.apt:
update_cache: yes
cache_valid_time: 0
name: hostname
state: latest
- name: Ensure the personal-linux-config repositories is updated
ansible.builtin.git:
dest: /root/personal-linux-config

View File

@ -0,0 +1,6 @@
---
- name: Ensure git is installed and updated
ansible.builtin.yum:
update_cache: yes
name: git
state: latest

View File

@ -0,0 +1,6 @@
---
- name: Ensure the hostname package is installed and updated
ansible.builtin.yum:
update_cache: yes
name: hostname
state: latest