* change ansible_pkg_mgr for package

This commit is contained in:
jamatute 2017-08-16 11:28:15 +02:00
parent 1bbdd2fc6b
commit 0ec2446cae
No known key found for this signature in database
GPG key ID: 00A634E6FB3C20D4

View file

@ -16,13 +16,11 @@
tags:
- sshd
- name: Installed
action: >
{{ ansible_pkg_mgr }}
name="{{ item }}"
state=installed
- name: Install ssh packages
package:
name: "{{ item }}"
state: present
with_items: "{{ sshd_packages }}"
when: ansible_pkg_mgr != 'unknown'
tags:
- sshd