install package conditionally

35 views
Skip to first unread message

Александр Костырев

unread,
Aug 15, 2015, 12:11:04 PM8/15/15
to Ansible Project
is it just me or conditional installation of packages is not possible with ansible?

- name: install foreman rubygem-apipie-bindings package
  yum: name=rubygem-apipie-bindings state=present
  when: foreman_proxy_register

the package always installs even if I specify 
```
foreman_proxy_register: false
```
in host_vars

Александр Костырев

unread,
Aug 15, 2015, 12:17:18 PM8/15/15
to Ansible Project
It was me.
Sorry guys
Reply all
Reply to author
Forward
0 new messages