Missing conditionals fixed

This commit is contained in:
Bastian Mäuser 2018-02-04 18:34:22 +01:00
parent 1c7be4b822
commit cf9f284f16

View File

@ -29,17 +29,20 @@
force=yes force=yes
- name: Cook batman-adv-dkms - name: Cook batman-adv-dkms
when: batman_dkms == true
command: /usr/local/bin/fpm-cook command: /usr/local/bin/fpm-cook
args: args:
chdir: /opt/ffnw-debian/batman-adv-dkms chdir: /opt/ffnw-debian/batman-adv-dkms
- name: Get cooked Debian Packages to List - name: Get cooked Debian Packages to List
when: batman_dkms == true
shell: "find *.deb" shell: "find *.deb"
register: pkg_list register: pkg_list
args: args:
chdir: /opt/ffnw-debian/batman-adv-dkms/pkg chdir: /opt/ffnw-debian/batman-adv-dkms/pkg
- name: Install batman-adv-dkms - name: Install batman-adv-dkms
when: batman_dkms == true
command: "/usr/bin/dpkg -i {{ item }}" command: "/usr/bin/dpkg -i {{ item }}"
args: args:
chdir: /opt/ffnw-debian/batman-adv-dkms/pkg chdir: /opt/ffnw-debian/batman-adv-dkms/pkg
@ -47,17 +50,20 @@
- "{{ pkg_list.stdout_lines }}" - "{{ pkg_list.stdout_lines }}"
- name: Cook batctl - name: Cook batctl
when: batman_dkms == true
command: /usr/local/bin/fpm-cook command: /usr/local/bin/fpm-cook
args: args:
chdir: /opt/ffnw-debian/batctl chdir: /opt/ffnw-debian/batctl
- name: Get cooked Debian Packages to List - name: Get cooked Debian Packages to List
when: batman_dkms == true
shell: "find *.deb" shell: "find *.deb"
register: pkg_list register: pkg_list
args: args:
chdir: /opt/ffnw-debian/batctl/pkg chdir: /opt/ffnw-debian/batctl/pkg
- name: Install batctl - name: Install batctl
when: batman_dkms == true
command: "/usr/bin/dpkg -i {{ item }}" command: "/usr/bin/dpkg -i {{ item }}"
args: args:
chdir: /opt/ffnw-debian/batctl/pkg chdir: /opt/ffnw-debian/batctl/pkg