20. Vagrant destroyをあまり使わない $ vagrant destroy –f $ vagrant up のようにサクッと壊して作ってを繰 り返すよりAnsibleの上書きを多めに。 21. ignore_errors: yesを使う - name: password shell: cat /root/.mysql_secret | awk '{ print $NF }' register: mysql_passwd - name: check MySQL root password shell: mysqlshow -uroot -p{{ mysql_passwd.stdout }} register: root_check ignore_errors: yes - name: set MySQL root password command: | mysql --con
![Ansible/Vagrantでアドテク環境を最速構築](https://cdn-ak-scissors.b.st-hatena.com/image/square/5cf1c2014857ee8dbd428b29789fb3ae975f096f/height=288;version=1;width=512/https%3A%2F%2Fcdn.slidesharecdn.com%2Fss_thumbnails%2Fansible-140219051442-phpapp02-thumbnail.jpg%3Fwidth%3D640%26height%3D640%26fit%3Dbounds)