add support for ubuntu
This commit is contained in:
@@ -11,11 +11,13 @@
|
||||
prompt: "State"
|
||||
private: no
|
||||
tasks:
|
||||
- name: Modify state of package in debian
|
||||
- name: Modify state of package in debian and ubuntu
|
||||
tags: debian
|
||||
apt:
|
||||
name: "{{ package_name }}"
|
||||
update_cache: yes
|
||||
state: "{{ state}}"
|
||||
autoremove: yes
|
||||
when: ansible_distribution == 'Debian'
|
||||
when:
|
||||
- ansible_distribution == 'Debian'
|
||||
- ansible_distribution == 'Ubuntu'
|
||||
|
||||
Reference in New Issue
Block a user