sos-ci create-sos-vm.sh脚本分析

sos-ci git:(master) cat -n create-sos-vm.sh
     1    #!/bin/bash
     2    
     3    ansible-playbook --extra-vars "ansible_sudo_pass=LOCALHOST_PASS" sos-ci/ansible/create-sos-ci-vm.yml -vvv#

ansible-playbook

Runs Ansible playbooks, executing the defined tasks on the targeted hosts.

-e, --extra-vars

set additional variables as key=value or YAML/JSON, if filename prepend with @

 

-v, --verbose

verbose mode (-vvv for more, -vvvv to enable connection debugging)

 

---------------------------------------

cat -n sos-ci/ansible/create-sos-ci-vm.yml
     1    ---
     2    
     3    - hosts: localhost
     4      become: yes
     5      gather_facts: yes
     6      connection: local
     7      roles:
     8        - sos-vm

posted @ 2019-07-24 16:03  kissrule  阅读(161)  评论(0编辑  收藏  举报