Examples: replace deprecated “yes” with “true”

pull/84272/head
Carsten Blüm 3 weeks ago committed by GitHub
parent 157ef04b1e
commit 8eea089cc2
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -285,17 +285,17 @@ EXAMPLES = """
- name: Run the equivalent of "apt-get update" as a separate step - name: Run the equivalent of "apt-get update" as a separate step
ansible.builtin.apt: ansible.builtin.apt:
update_cache: yes update_cache: true
- name: Only run "update_cache=yes" if the last one is more than 3600 seconds ago - name: Only run "update_cache=yes" if the last one is more than 3600 seconds ago
ansible.builtin.apt: ansible.builtin.apt:
update_cache: yes update_cache: true
cache_valid_time: 3600 cache_valid_time: 3600
- name: Pass options to dpkg on run - name: Pass options to dpkg on run
ansible.builtin.apt: ansible.builtin.apt:
upgrade: dist upgrade: dist
update_cache: yes update_cache: true
dpkg_options: 'force-confold,force-confdef' dpkg_options: 'force-confold,force-confdef'
- name: Install a .deb package - name: Install a .deb package
@ -313,20 +313,20 @@ EXAMPLES = """
- name: Remove useless packages from the cache - name: Remove useless packages from the cache
ansible.builtin.apt: ansible.builtin.apt:
autoclean: yes autoclean: true
- name: Remove dependencies that are no longer required - name: Remove dependencies that are no longer required
ansible.builtin.apt: ansible.builtin.apt:
autoremove: yes autoremove: true
- name: Remove dependencies that are no longer required and purge their configuration files - name: Remove dependencies that are no longer required and purge their configuration files
ansible.builtin.apt: ansible.builtin.apt:
autoremove: yes autoremove: true
purge: true purge: true
- name: Run the equivalent of "apt-get clean" as a separate step - name: Run the equivalent of "apt-get clean" as a separate step
ansible.builtin.apt: ansible.builtin.apt:
clean: yes clean: true
""" """
RETURN = """ RETURN = """

Loading…
Cancel
Save