Ansible 使うとき何考えてるの/ansible-role-reuse

zinrai
February 08, 2021

Ansible 使うとき何考えてるの/ansible-role-reuse

Ansible Night in Tokyo 2019.07
https://ansible-users.connpass.com/event/135965/

zinrai

February 08, 2021

Annual Pro sale · Save $30

Have presentations of your own?

Share with private links, password protection, and more control over your work.

Transcript

30 slides
  1. apache2 ( Apache インストール ) apache2_conf ( Apache 設定 )

    ntp ( NTP インストール ) ntp_conf ( NTP 設定 ) etc.
  2. 「インストールしてから設定する」を Ansible では Role Dependencies で表現でき る。 cat << EOF

    > apache2_conf/meta/main.yml --- dependencies: - role: apache2 EOF https://docs.ansible.com/ansible/latest/user_guide/playbooks_reuse_roles.html# role-dependencies

More Decks by zinrai

Other Decks in Technology