Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

ansible run a task always at the end

# Use block and always, which executes its tasks no matter what happens
# in the block tasks.
- name: Always do X
   block:
     - debug:
         msg: 'I execute normally'
     - name: i force a failure
       command: /bin/false
     - debug:
         msg: 'I never execute :-('
   always:
     - debug:
         msg: "This always executes, :-)"
Comment

PREVIOUS NEXT
Code Example
Shell :: installing custom indicators mt4 mac 
Shell :: monitor log file for string 
Shell :: gcloud check repos 
Shell :: ubuntu aide compare file structure 
Shell :: telegram cli install ubuntu 
Shell :: HPUX List Os Version 
Shell :: can you make a personal assistant for linux 
Shell :: git config fodler level 
Shell :: fsl remove_ext 
Shell :: linux head command get 2nd line 
Shell :: nuxt check is production 
Shell :: pid os linux vs session oracle 
Shell :: disk usuage 
Shell :: mawk print file contents 
Shell :: 2FA git commands 
Shell :: add gpg key to jenkins repository for debian 
Shell :: git unable to connect to cache daemon: Permission denied 
Shell :: how to create project in ssh mobaxterm 
Shell :: copy venv to another folder linux 
Shell :: yes/no maybe 
Shell :: digital bootcamps in gauteng 
Shell :: how to install and update git mac terminal 
Shell :: linux restrict process network access 
Shell :: my numpad stopped working in ubuntu 
Shell :: get bash name wget down loaded file 
Shell :: fatal authentication failed for git psuh 
Shell :: Could not download aapt2-proto-4.1.0-alpha01-6193524.jar 
Shell :: netcat find all devices 
Shell :: modify JSON values in place with jq 
Shell :: git ignore is not working on local repository 
ADD CONTENT
Topic
Content
Source link
Name
9+6 =