mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-06-04 23:37:12 +00:00
[PR #12055/a15d9a35 backport][stable-10] packet_project and packet_sshkey: fix broken example plays (#12056)
packet_project and packet_sshkey: fix broken example plays (#12055)
Fix example plays.
(cherry picked from commit a15d9a3510)
Co-authored-by: Felix Fontein <felix@fontein.de>
This commit is contained in:
parent
a043cf2467
commit
a18ec2f040
2 changed files with 19 additions and 19 deletions
|
|
@ -84,29 +84,29 @@ EXAMPLES = r"""
|
|||
- name: Create new project
|
||||
hosts: localhost
|
||||
tasks:
|
||||
community.general.packet_project:
|
||||
name: "new project"
|
||||
- community.general.packet_project:
|
||||
name: "new project"
|
||||
|
||||
- name: Create new project within non-default organization
|
||||
hosts: localhost
|
||||
tasks:
|
||||
community.general.packet_project:
|
||||
name: "my org project"
|
||||
org_id: a4cc87f9-e00f-48c2-9460-74aa60beb6b0
|
||||
- community.general.packet_project:
|
||||
name: "my org project"
|
||||
org_id: a4cc87f9-e00f-48c2-9460-74aa60beb6b0
|
||||
|
||||
- name: Remove project by id
|
||||
hosts: localhost
|
||||
tasks:
|
||||
community.general.packet_project:
|
||||
state: absent
|
||||
id: eef49903-7a09-4ca1-af67-4087c29ab5b6
|
||||
- community.general.packet_project:
|
||||
state: absent
|
||||
id: eef49903-7a09-4ca1-af67-4087c29ab5b6
|
||||
|
||||
- name: Create new project with non-default billing method
|
||||
hosts: localhost
|
||||
tasks:
|
||||
community.general.packet_project:
|
||||
name: "newer project"
|
||||
payment_method: "the other visa"
|
||||
- community.general.packet_project:
|
||||
name: "newer project"
|
||||
payment_method: "the other visa"
|
||||
"""
|
||||
|
||||
RETURN = r"""
|
||||
|
|
|
|||
|
|
@ -66,22 +66,22 @@ EXAMPLES = r"""
|
|||
- name: Create sshkey from string
|
||||
hosts: localhost
|
||||
tasks:
|
||||
community.general.packet_sshkey:
|
||||
key: "{{ lookup('file', 'my_packet_sshkey.pub') }}"
|
||||
- community.general.packet_sshkey:
|
||||
key: "{{ lookup('file', 'my_packet_sshkey.pub') }}"
|
||||
|
||||
- name: Create sshkey from file
|
||||
hosts: localhost
|
||||
tasks:
|
||||
community.general.packet_sshkey:
|
||||
label: key from file
|
||||
key_file: ~/ff.pub
|
||||
- community.general.packet_sshkey:
|
||||
label: key from file
|
||||
key_file: ~/ff.pub
|
||||
|
||||
- name: Remove sshkey by id
|
||||
hosts: localhost
|
||||
tasks:
|
||||
community.general.packet_sshkey:
|
||||
state: absent
|
||||
id: eef49903-7a09-4ca1-af67-4087c29ab5b6
|
||||
- community.general.packet_sshkey:
|
||||
state: absent
|
||||
id: eef49903-7a09-4ca1-af67-4087c29ab5b6
|
||||
"""
|
||||
|
||||
RETURN = r"""
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue