Ansible command

Ansible command

Creator
Creator
Seonglae ChoSeonglae Cho
Created
Created
2020 Jan 15 5:49
Editor
Edited
Edited
2023 Oct 15 3:36
Refs
Refs

Function -

 
 
  • example 1
- name: Change the working directory to somedir/ and run the command as db_owner if /path/to/database does not exist. command: /usr/bin/make_database.sh db_user db_name become: yes become_user: db_owner args: chdir: somedir/ creates: /path/to/database
 
 
 
 
 
 

Recommendations