install-packages: become, add more pkgs
This commit is contained in:
parent
2c9f5aecc8
commit
2db773f15a
4 changed files with 5 additions and 14 deletions
|
@ -22,5 +22,7 @@ EL_PKGS:
|
||||||
- wget
|
- wget
|
||||||
- cockpit
|
- cockpit
|
||||||
- ioping
|
- ioping
|
||||||
|
- kitty-terminfo
|
||||||
|
- dnf-plugin-system-upgrade
|
||||||
DEB_PKGS:
|
DEB_PKGS:
|
||||||
- dnsutils
|
- dnsutils
|
||||||
|
|
|
@ -1,6 +1,7 @@
|
||||||
---
|
---
|
||||||
|
|
||||||
- name: install packages (Debian/Ubuntu)
|
- name: install packages (Debian/Ubuntu)
|
||||||
|
become: true
|
||||||
package:
|
package:
|
||||||
name: "{{ (COMMON_PKGS + DEB_PKGS) | difference(ansible_facts.packages) }}"
|
name: "{{ (COMMON_PKGS + DEB_PKGS) | difference(ansible_facts.packages) }}"
|
||||||
state: present
|
state: present
|
||||||
|
|
|
@ -1,6 +1,7 @@
|
||||||
---
|
---
|
||||||
|
|
||||||
- name: install packages (EPEL/Fedora)
|
- name: install packages (EPEL/Fedora)
|
||||||
|
become: true
|
||||||
package:
|
package:
|
||||||
name: "{{ (COMMON_PKGS + EL_PKGS) | difference(ansible_facts.packages) }}"
|
name: "{{ (COMMON_PKGS + EL_PKGS) | difference(ansible_facts.packages) }}"
|
||||||
state: present
|
state: present
|
||||||
|
|
|
@ -2,19 +2,6 @@
|
||||||
|
|
||||||
- include_tasks: deb.yml
|
- include_tasks: deb.yml
|
||||||
when: ansible_distribution in ["Debian", "Ubuntu"]
|
when: ansible_distribution in ["Debian", "Ubuntu"]
|
||||||
|
|
||||||
- include_tasks: el.yml
|
- include_tasks: el.yml
|
||||||
when: ansible_distribution in ["CentOS" , "Red Hat Enterprise Linux", "RedHat", "Fedora"] and not is_atomic
|
when: ansible_distribution in ["CentOS" , "Red Hat Enterprise Linux", "RedHat", "Fedora"] and not is_atomic
|
||||||
|
|
||||||
# Need an idempotent way to install packages on atomic
|
|
||||||
# command module isn't idempotent and the package module insists on installing containers.
|
|
||||||
|
|
||||||
#- name: install packages (fedora - atomic)
|
|
||||||
# command: rpm-ostree install '{{ item }}'
|
|
||||||
# with_items:
|
|
||||||
# - htop
|
|
||||||
# - vim
|
|
||||||
# - iperf3
|
|
||||||
# - strace
|
|
||||||
# - nmap
|
|
||||||
# when: ansible_distribution == 'Fedora' and is_atomic
|
|
||||||
|
|
Loading…
Reference in a new issue