Commit bcb50352 authored by julian.gethmann's avatar julian.gethmann

Fix int issue

parent 2008b3de
...@@ -9,11 +9,8 @@ ...@@ -9,11 +9,8 @@
- name: install dependencies - name: install dependencies
become: yes become: yes
dnf: dnf:
name: "{{ item }}" name: ["hplip-common", "hplip"]
state: present state: present
with_items:
- "hplip-common"
- "hplip"
when: ansible_distribution == 'Fedora' when: ansible_distribution == 'Fedora'
- name: install CUPS - name: install CUPS
......
...@@ -20,7 +20,7 @@ ...@@ -20,7 +20,7 @@
line: "HIGHLEVEL_PACKAGE_MANAGER=dnf" line: "HIGHLEVEL_PACKAGE_MANAGER=dnf"
regexp: "HIGHLEVEL_PACKAGE_MANAGER=.*" regexp: "HIGHLEVEL_PACKAGE_MANAGER=.*"
backup: yes backup: yes
when: (ansible_distribution == "Fedora" and (ansible_distribution_major_version|int) >= "18") when: (ansible_distribution == "Fedora" and (ansible_distribution_major_version|int) >= 18)
- name: yum as package manager - name: yum as package manager
become: yes become: yes
...@@ -29,7 +29,7 @@ ...@@ -29,7 +29,7 @@
line: "HIGHLEVEL_PACKAGE_MANAGER=yum" line: "HIGHLEVEL_PACKAGE_MANAGER=yum"
regexp: "HIGHLEVEL_PACKAGE_MANAGER=.*" regexp: "HIGHLEVEL_PACKAGE_MANAGER=.*"
backup: yes backup: yes
when: (ansible_distribution == "CentOS" and (ansible_distribution_major_version|int) <= "7") when: (ansible_distribution == "CentOS" and (ansible_distribution_major_version|int) <= 7)
- name: apt as package manager - name: apt as package manager
lineinfile: lineinfile:
......
...@@ -10,8 +10,8 @@ ...@@ -10,8 +10,8 @@
package: package:
name: python-firewall name: python-firewall
state: present state: present
when: ((ansible_distribution == "Fedora" and (ansible_distribution_major_version|int) < 28)) or when: ((ansible_distribution == "Fedora" and (ansible_distribution_major_version|int) < 28) or
(ansible_distribution == "CentOS" and (ansible_distribution_major_version|int) >= 7))) (ansible_distribution == "CentOS" and (ansible_distribution_major_version|int) >= 7))
- name: Warn about firewalld not working - name: Warn about firewalld not working
debug: debug:
......
--- ---
- vars: - vars:
ansible_python_interpreter: "/usr/bin/env python3" ansible_python_interpreter: "/usr/bin/env python3"
when: (ansible_distribution == 'Fedora' and ansible_distribution_version >= 28) when: (ansible_distribution == 'Fedora' and (ansible_distribution_version|int) >= 28)
- import_playbook: common.yml - import_playbook: common.yml
- import_playbook: clients.yml - import_playbook: clients.yml
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment