Skip to content

Commit

Permalink
Merge pull request #7 from arillso/fix-apt-packages
Browse files Browse the repository at this point in the history
fix apt packages
  • Loading branch information
sbaerlocher authored Nov 9, 2022
2 parents 1fcd71d + fc1309f commit 97f638e
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 1 deletion.
2 changes: 1 addition & 1 deletion roles/apt_packages/tasks/install_apt_package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
- name: ensure {{ apt_package_name }} apt package
become: true
ansible.builtin.apt:
pkg: "{% if apt_package_version and apt_package_version > 0 %}{{ apt_package_name }}={{ apt_package_version }}{% else %}{{ apt_package_name }}{% endif %}"
pkg: "{% if apt_package_version and apt_package_version|int > 0 %}{{ apt_package_name }}={{ apt_package_version }}{% else %}{{ apt_package_name }}{% endif %}"
allow_downgrade: "{{ apt_package_allow_downgrade | default(omit) }}"
install_recommends: "{{ apt_package_install_recommends | default(omit) }}"
purge: "{{ apt_package_purge | default(omit) }}"
Expand Down
12 changes: 12 additions & 0 deletions roles/logrotate/tasks/install_logrotate_centos.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
---

- name: Run arillso dnf Package
ansible.builtin.include_role:
name: arillso.system.dnf_packages
tasks_from: install_dnf_package
loop: "{{ logrotate_packages }}"
loop_control:
loop_var: logrotate_package
vars:
dnf_package_name: "{{ logrotate_package.name }}"
dnf_package_version: "{{ logrotate_package.version | default('') }}"
7 changes: 7 additions & 0 deletions roles/packages/tasks/install_package_centos.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---

- name: Run arillso dnf Package
ansible.builtin.include_role:
name: arillso.system.dnf_packages
vars:
dnf_packages: "{{ packages }}"

0 comments on commit 97f638e

Please sign in to comment.