Created
December 30, 2018 13:13
-
-
Save m1cr0man/75b37cc6fbeb858ac0414396a1d99634 to your computer and use it in GitHub Desktop.
Ansible #50399 sample
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
PLAY [baremetal] ************************************************************************************************************************************************************************************************************************************************************** | |
TASK [Gathering Facts] ******************************************************************************************************************************************************************************************************************************************************** | |
ok: [myserver] | |
TASK [hello-world imported] *************************************************************************************************************************************************************************************************************************************************** | |
changed: [myserver] | |
TASK [debug] ****************************************************************************************************************************************************************************************************************************************************************** | |
ok: [myserver] => { | |
"helloworld.uuid": "a65fb4d3-593f-1ec2-d89a-4649e5ed856e" | |
} | |
TASK [hello-world imported x2] ************************************************************************************************************************************************************************************************************************************************ | |
ok: [myserver] | |
TASK [debug] ****************************************************************************************************************************************************************************************************************************************************************** | |
ok: [myserver] => { | |
"helloworld.uuid": "a65fb4d3-593f-1ec2-d89a-4649e5ed856e" | |
} | |
TASK [hello-world deleted] **************************************************************************************************************************************************************************************************************************************************** | |
changed: [myserver] | |
TASK [debug] ****************************************************************************************************************************************************************************************************************************************************************** | |
ok: [myserver] => { | |
"helloworld.uuid": "a65fb4d3-593f-1ec2-d89a-4649e5ed856e" | |
} | |
TASK [hello-world deleted x2] ************************************************************************************************************************************************************************************************************************************************* | |
ok: [myserver] | |
TASK [debug] ****************************************************************************************************************************************************************************************************************************************************************** | |
ok: [myserver] => { | |
"helloworld.uuid": "a65fb4d3-593f-1ec2-d89a-4649e5ed856e" | |
} | |
PLAY RECAP ******************************************************************************************************************************************************************************************************************************************************************** | |
myserver : ok=9 changed=2 unreachable=0 failed=0 | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
- hosts: baremetal | |
tasks: | |
- name: hello-world imported | |
register: helloworld | |
imgadm: | |
tag: hello-world:latest | |
state: present | |
- debug: var=helloworld.uuid | |
- name: hello-world imported x2 | |
register: helloworld | |
imgadm: | |
tag: hello-world:latest | |
state: imported | |
- debug: var=helloworld.uuid | |
- name: hello-world deleted | |
register: helloworld | |
imgadm: | |
tag: hello-world:latest | |
state: absent | |
- debug: var=helloworld.uuid | |
- name: hello-world deleted x2 | |
register: helloworld | |
imgadm: | |
tag: hello-world:latest | |
state: deleted | |
- debug: var=helloworld.uuid |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment