sugardon server ansible
Mac で ansible 失敗する回避用
$ export OBJC_DISABLE_INITIALIZE_FORK_SAFETY=YES
$ ANSIBLE_CONFIG=playbooks/first_time/ansible.cfg ansible-playbook -i inventories/${INVENTORY}/hosts playbooks/first_time/setup.yml --ask-become-pass -vvv
$ ANSIBLE_CONFIG=playbooks/sugardon01_setup/ansible.cfg ansible-playbook -i inventories/sugardon01/hosts playbooks/sugardon01_setup/sugardon01.yml -vvv
$ ansible-playbook -i inventories/sugardon02/hosts playbooks/sugardon02_setup/sugardon02.yml -vvv
- (First time) Run First time
Use flag--connection=local
- Run dev tool
$ sudo ansible-playbook -i inventories/dev_tool/hosts -l wsl2_ubuntu playbooks/dev_tool/wsl2_ubuntu.yml -vvv --connection=local
$ ansible-playbook -i inventories/${INVENTORY}/hosts playbooks/${PLAYBOOK} -vvv