mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
pkgng: use YAML lists for multiple packages
I had been following the documentation examples, and specifiying multiple packages on one line. The right way to do it is with YAML list syntax.
This commit is contained in:
parent
98ccc58ba0
commit
aa88d68ebc
1 changed files with 14 additions and 4 deletions
|
@ -182,12 +182,18 @@
|
|||
|
||||
- name: Install three packages
|
||||
pkgng:
|
||||
name: '{{ pkgng_test_pkg_name }} fish busybox'
|
||||
name:
|
||||
- '{{ pkgng_test_pkg_name }}'
|
||||
- fish
|
||||
- busybox
|
||||
register: pkgng_example5
|
||||
|
||||
- name: Remove three packages
|
||||
pkgng:
|
||||
name: '{{ pkgng_test_pkg_name }} fish busybox'
|
||||
name:
|
||||
- '{{ pkgng_test_pkg_name }}'
|
||||
- fish
|
||||
- busybox
|
||||
state: absent
|
||||
register: pkgng_example5_cleanup
|
||||
|
||||
|
@ -219,13 +225,17 @@
|
|||
|
||||
- name: Upgrade and/or install two packages
|
||||
pkgng:
|
||||
name: '{{ pkgng_test_pkg_name }} fish'
|
||||
name:
|
||||
- '{{ pkgng_test_pkg_name }}'
|
||||
- fish
|
||||
state: latest
|
||||
register: pkgng_example6
|
||||
|
||||
- name: Remove two packages
|
||||
pkgng:
|
||||
name: '{{ pkgng_test_pkg_name }} fish'
|
||||
name:
|
||||
- '{{ pkgng_test_pkg_name }}'
|
||||
- fish
|
||||
state: absent
|
||||
register: pkgng_example6_cleanup
|
||||
|
||||
|
|
Loading…
Reference in a new issue