1
0
Fork 0
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:
Ross Williams 2021-10-11 19:28:26 +00:00
parent 98ccc58ba0
commit aa88d68ebc

View file

@ -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