mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-04-21 01:41:25 -07:00
modules: fix examples to use FQCN for builtin modules (#648)
* modules: fix examples to use FQCN for builtin modules * fix * fix * fix * fix * fix * fix * fix
This commit is contained in:
parent
c034e8c04f
commit
c055340ecb
126 changed files with 290 additions and 286 deletions
|
@ -164,14 +164,14 @@ EXAMPLES = '''
|
|||
|
||||
- name: Check python is installed in container
|
||||
delegate_to: mycontainer
|
||||
raw: dpkg -s python
|
||||
ansible.builtin.raw: dpkg -s python
|
||||
register: python_install_check
|
||||
failed_when: python_install_check.rc not in [0, 1]
|
||||
changed_when: false
|
||||
|
||||
- name: Install python in container
|
||||
delegate_to: mycontainer
|
||||
raw: apt-get install -y python
|
||||
ansible.builtin.raw: apt-get install -y python
|
||||
when: python_install_check.rc == 1
|
||||
|
||||
# An example for creating an Ubuntu 14.04 container using an image fingerprint.
|
||||
|
@ -239,7 +239,7 @@ EXAMPLES = '''
|
|||
- mycontainer
|
||||
tasks:
|
||||
- name: Copy /etc/hosts in the created container to localhost with name "mycontainer-hosts"
|
||||
fetch:
|
||||
ansible.builtin.fetch:
|
||||
src: /etc/hosts
|
||||
dest: /tmp/mycontainer-hosts
|
||||
flat: true
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue