Skip to content

Commit

Permalink
adding update packages informations and display packages informations…
Browse files Browse the repository at this point in the history
… tasks
  • Loading branch information
Ythiss committed Nov 27, 2020
1 parent 0e5411b commit ee9e5b7
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions resources/ansible.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,3 +16,21 @@ when: my_list | length > 0
state: latest
name: "*"
```

* Update packages informations and display packages informations

```
- name: Update packages informations
package_facts:
manager: "auto"
- name: Display all installed packages informations
debug:
msg: "{{ ansible_facts.packages }}"
- name: Display all Chromium package informations
debug:
msg: "{{ ansible_facts.packages['chromium'] }}"
when: "'chromium' in ansible_facts.packages"
```

0 comments on commit ee9e5b7

Please sign in to comment.