Initial commit with sources
This commit is contained in:
10
ansible/packages_include.yml
Normal file
10
ansible/packages_include.yml
Normal file
@@ -0,0 +1,10 @@
|
||||
---
|
||||
|
||||
- name: check package version
|
||||
shell: dpkg -l | awk '$2=="{{ package }}" { print $3 }'
|
||||
register: package_version_debian
|
||||
changed_when: false
|
||||
|
||||
- name: output
|
||||
debug: msg="{{ inventory_hostname }};{{ package }};{{ package_version_debian.stdout }}"
|
||||
when: package_version_debian.stdout != ""
|
||||
Reference in New Issue
Block a user