mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
remove some instances of state: installed
(#53537)
This fixes the examples in multiple modules so they use `state: present` instead of `state: installed`.
This commit is contained in:
parent
4172d68dc3
commit
86ba4f3e46
4 changed files with 11 additions and 5 deletions
|
@ -16,7 +16,10 @@ Ansible makes it easy for you to configure the remote execution environment by u
|
||||||
|
|
||||||
tasks:
|
tasks:
|
||||||
|
|
||||||
- apt: name=cobbler state=installed
|
- name: Install cobbler
|
||||||
|
package:
|
||||||
|
name: cobbler
|
||||||
|
state: present
|
||||||
environment:
|
environment:
|
||||||
http_proxy: http://proxy.example.com:8080
|
http_proxy: http://proxy.example.com:8080
|
||||||
|
|
||||||
|
@ -32,7 +35,10 @@ The environment can also be stored in a variable, and accessed like so::
|
||||||
|
|
||||||
tasks:
|
tasks:
|
||||||
|
|
||||||
- apt: name=cobbler state=installed
|
- name: Install cobbler
|
||||||
|
package:
|
||||||
|
name: cobbler
|
||||||
|
state: present
|
||||||
environment: "{{proxy_env}}"
|
environment: "{{proxy_env}}"
|
||||||
|
|
||||||
You can also use it at a play level::
|
You can also use it at a play level::
|
||||||
|
|
|
@ -371,7 +371,7 @@ EXAMPLES = r'''
|
||||||
- nm-connection-editor
|
- nm-connection-editor
|
||||||
- libsemanage-python
|
- libsemanage-python
|
||||||
- policycoreutils-python
|
- policycoreutils-python
|
||||||
state: installed
|
state: present
|
||||||
|
|
||||||
##### Working with all cloud nodes - Teaming
|
##### Working with all cloud nodes - Teaming
|
||||||
- name: Try nmcli add team - conn_name only & ip4 gw4
|
- name: Try nmcli add team - conn_name only & ip4 gw4
|
||||||
|
|
|
@ -46,7 +46,7 @@ options:
|
||||||
EXAMPLES = '''
|
EXAMPLES = '''
|
||||||
- swdepot:
|
- swdepot:
|
||||||
name: unzip-6.0
|
name: unzip-6.0
|
||||||
state: installed
|
state: present
|
||||||
depot: 'repository:/path'
|
depot: 'repository:/path'
|
||||||
|
|
||||||
- swdepot:
|
- swdepot:
|
||||||
|
|
|
@ -48,7 +48,7 @@ EXAMPLES = r'''
|
||||||
- name: Asynchronous yum task
|
- name: Asynchronous yum task
|
||||||
yum:
|
yum:
|
||||||
name: docker-io
|
name: docker-io
|
||||||
state: installed
|
state: present
|
||||||
async: 1000
|
async: 1000
|
||||||
poll: 0
|
poll: 0
|
||||||
register: yum_sleeper
|
register: yum_sleeper
|
||||||
|
|
Loading…
Reference in a new issue