Access to files for played games after starting the playbook

I am running ansible script using ansible-pullon a remote computer (client side) which I do not see.

I want to make sure that:

  • the unfinished play will be completed successfully, after which a resume should be sent
  • an incomplete game, if it is not completed successfully, should send a summary of what failed

The inclusion of inaccessible logs stores information in some kind of log file, but it was interesting if I could get the results below the available output through some variables predefined in the inaccessible.

PLAY [localhost] ************************************************************** 

GATHERING FACTS *************************************************************** 
ok: [localhost]

TASK: [Install the hello package] ********************************************* 
ok: [localhost] => {"changed": false}

TASK: [Install the cmatrix package] ******************************************* 
ok: [localhost] => {"changed": false}

PLAY RECAP ******************************************************************** 
localhost                  : ok=3    changed=0    unreachable=0    failed=0  

If not, then I will have to write my own scripts to analyze the logs, save the information in some db on the machine and send it to our servers.

+4
1

AFAIK , .

. log_plays. . , ( def playbook_on_stats(self, stats): ) , . , .

+4

Source: https://habr.com/ru/post/1616493/


All Articles