Skip to content

Instantly share code, notes, and snippets.

@m1cr0man m1cr0man/output.txt
Created Dec 30, 2018

Embed
What would you like to do?
Ansible #50399 sample
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
---
- 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
You can’t perform that action at this time.