made personal-linux-config compatible with RHEL environments
This commit is contained in:
parent
98459fa7e5
commit
b984e4e3b2
@ -4,4 +4,10 @@
|
|||||||
tasks:
|
tasks:
|
||||||
- import_tasks: tasks/debian-general/git.yml
|
- import_tasks: tasks/debian-general/git.yml
|
||||||
when: ansible_facts["os_family"] == "Debian"
|
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
|
||||||
|
@ -2,6 +2,5 @@
|
|||||||
- name: Ensure git is installed and updated
|
- name: Ensure git is installed and updated
|
||||||
ansible.builtin.apt:
|
ansible.builtin.apt:
|
||||||
update_cache: yes
|
update_cache: yes
|
||||||
cache_valid_time: 0
|
|
||||||
name: git
|
name: git
|
||||||
state: latest
|
state: latest
|
||||||
|
6
tasks/debian-general/hostname-package.yml
Normal file
6
tasks/debian-general/hostname-package.yml
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
---
|
||||||
|
- name: Ensure the hostname package is installed and updated
|
||||||
|
ansible.builtin.apt:
|
||||||
|
update_cache: yes
|
||||||
|
name: hostname
|
||||||
|
state: latest
|
@ -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
|
- name: Ensure the personal-linux-config repositories is updated
|
||||||
ansible.builtin.git:
|
ansible.builtin.git:
|
||||||
dest: /root/personal-linux-config
|
dest: /root/personal-linux-config
|
||||||
|
6
tasks/rhel-general/git.yml
Normal file
6
tasks/rhel-general/git.yml
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
---
|
||||||
|
- name: Ensure git is installed and updated
|
||||||
|
ansible.builtin.yum:
|
||||||
|
update_cache: yes
|
||||||
|
name: git
|
||||||
|
state: latest
|
6
tasks/rhel-general/hostname-package.yml
Normal file
6
tasks/rhel-general/hostname-package.yml
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
---
|
||||||
|
- name: Ensure the hostname package is installed and updated
|
||||||
|
ansible.builtin.yum:
|
||||||
|
update_cache: yes
|
||||||
|
name: hostname
|
||||||
|
state: latest
|
Loading…
Reference in New Issue
Block a user