Skip to content

Instantly share code, notes, and snippets.

@seak0503
Created September 9, 2016 07:26
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save seak0503/86b7192c80761209d1db6019cdca4ea7 to your computer and use it in GitHub Desktop.
Save seak0503/86b7192c80761209d1db6019cdca4ea7 to your computer and use it in GitHub Desktop.
ansible taskの一覧確認

構文

ansible-playbook -i イベントリファイル playbookファイル --list-tasks

実行例

$ ansible-playbook -i test-servers site.yml --list-tasks

playbook: site.yml

  play #1 (all): all    TAGS: []
    tasks:
      common : be sure epel repository is installed     TAGS: [epel]
      common : disable epel repository  TAGS: [epel]
      common : be sure common packages are installed    TAGS: [common-packages]
      common : configure sshd_config    TAGS: [sshd]
      common : be sure ntpd is running and enabled      TAGS: [ntpd]

  play #2 (wordpress): wordpress        TAGS: []
    tasks:
      wordpress : be sure httpd is installed    TAGS: [httpd]
      wordpress : create document root  TAGS: []
      wordpress : be sure httpd is configured   TAGS: [httpd]
      wordpress : remove httpd welcome.conf     TAGS: [httpd]
      wordpress : be sure httpd is running and enabled  TAGS: [httpd]
      wordpress : be sure mysql-server is installed     TAGS: [mysqld]
      wordpress : be sure mysqld is running and enabled TAGS: [mysqld]
      wordpress : Create database       TAGS: [mysqld]
      wordpress : Create database user  TAGS: [mysqld]
      wordpress : be sure php is installed      TAGS: [php]
      wordpress : set timezone in php.ini       TAGS: [php]
      wordpress : download wordpress package    TAGS: [wordpress]
      wordpress : extract wordpress tar ball    TAGS: [wordpress]
      wordpress : generate secret keys  TAGS: [wordpress]
      wordpress : read secret keys      TAGS: [wordpress]
      wordpress : configure wp-config.php       TAGS: [wordpress]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment