pid/run/nginx.pid; ...省略... #创建变量文件 [root@ansible nginx]#vim vars/main.yml user: daemon #在playbook中调用角色 [root@ansible~]#vim /data/ansible/role_nginx.yml---#nginx role-hosts: websrvs roles:-role: nginx #运行playbook [root@ansible~]#ansible-playbook /data/ansible/role_...
run plays and tasks whose tags do not match these values --start-at-task=START_AT start the playbook at the task matching this name --step one-step-at-a-time: confirm each task before running -S, --su run operations with su -R SU_USER, --su-user=SU_USER run operations with su...
- name: Run command that only runs if folder exists and runs from a specific folder win_command: wbadmin -backupTarget:C:\backup\ args: chdir: C:\somedir\ creates: C:\backup\ - name: Run an executable and send data to the stdin for the executable win_command: powershell.exe args: ...
$ vagrant statusCurrent machine states:web1 running (virtualbox)web2 running (virtualbox)master running (virtualbox)This environment represents multiple VMs. The VMs are all listedabove with their current state. For more information about a specificVM, run `vagrant status NAME`.现在使用 vagrant 的...
run at the wrong time. Several different tools are used depending on the OS/Distribution involved. For Linux it can use `timedatectl' or edit `/etc/sysconfig/clock' or `/etc/timezone' and `hwclock'. On SmartOS, `sm-set- timezone', for macOS, `systemsetup', for BSD, `/etc/localti...
If executable, it will be run and the resulting stdout will be used as the password. Type: path Default: None Version Added: 2.12 Ini: Section: [defaults] Key: become_password_file Environment: Variable: ANSIBLE_BECOME_PASSWORD_FILE BECOME_PLUGIN_PATH Description: Colon-separated ...
vmware_vm_shell – Run commands in a VMware guest operating system vmware_vm_vm_drs_rule – Configure VMware DRS Affinity rule for virtual machine in given cluster vmware_vm_vss_dvs_migrate – Migrates a virtual machine from a standard vswitch to distributed vmware_vmkernel – Manage a VMware...
Get more information about a role Use theinfocommand to view more detail about a specific role: $ansible-galaxyroleinfousername.role_name This returns everything found in Galaxy for the role: Role: username.role_name description: Installs and configures a thing, a distributed, highly availab...
You will need to run this role as a root user using Ansible'sbecomeparameter. Make sure you have set up the appropriate permissions on your target hosts. Tip You can alternatively install theAnsible community distribution(what is still known Ansible -- instead of Ansible core) if you don't...
Note that if you install the collection from Ansible Galaxy, it will not be upgraded automatically when you upgrade theansiblepackage. To upgrade the collection to the latest available version, run the following command: ansible-galaxy collection install manala.roles --upgrade ...