1

I adapted this playbook for rhel https://github.com/matisku/ansible-teamcity-server

I am familiar with running single yaml file by using ansible-playbook I am not sure how to run this yaml playbook with tasks, handlers, etc Can anyone point me to documentation on running the multiple file playbooks

thanks

1

That is not a playbook but a role. It's published at Ansible Galaxy ( docs ): https://galaxy.ansible.com/matisku/teamcity-server

If you use Galaxy to pull in the role you can use it as mentioned in the readme of the GitHub repo under "Example playbook". Just create a file that contains:

- hosts: teamcity-servers
  become: yes 
  roles:
    - matisku.teamcity-server

If instead you pull the code using git place it in a folder in /etc/ansible/roles/ and use the name of that folder in the roles directive:

- hosts: teamcity-servers
  become: yes 
  roles:
    - myownteamcityrolename
| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.