---
-- include: repo.yml
+- include_tasks: repo.yml
-- include: dependencies.yml
+- include_tasks: dependencies.yml
-- include: nginx.yml
+- include_tasks: nginx.yml
-- include: letsencrypt.yml
+- include_tasks: letsencrypt.yml
tags:
- letsencrypt
-- include: ufw.yml
+- include_tasks: ufw.yml
tags:
- ufw
state: present
register: jenkins_install
-- include: config.yml
+- include_tasks: config.yml
-- include: plugins.yml
+- include_tasks: plugins.yml
when: okay_with_restart == "y"
tags:
- plugins
# This should only get run the first time the role is run.
# The variables should be passed as --extra-vars via ansible-playbook command
-- include: auth.yml
+- include_tasks: auth.yml
when: github_oauth_client is defined and github_oauth_secret is defined
tags:
- auth
-- include: config.yml
+- include_tasks: config.yml
---
-- include: jenkins.yml tags=jenkins
+- include_tasks: jenkins.yml
+ tags: jenkins
# we probably messed up the previous commit+tag, so we chose to use 'clean'
# that will rollback that commit, delete the local and remote tag, and force
# push the new changes
-- include: clear_version.yml
+- include_tasks: clear_version.yml
when: (clean and last_commit.stdout == tag_name)
# if the last commit wasn't one that we already did, then go ahead and make
# the changes + tag for the release. Otherwise, just skip because it was
# already done for this release
-- include: release.yml
+- include_tasks: release.yml
when: (tag_name != last_commit.stdout)
- restart app
become: true
-- include: postgresql.yml
+- include_tasks: postgresql.yml
tags:
- postgresql
-- include: nginx.yml
+- include_tasks: nginx.yml
- name: ensure nginx is running
become: true
creates: "/usr/lib/python2.7/dist-packages/graphite/graphite_web.py"
become: true
-- include: carbon.yml
+- include_tasks: carbon.yml
-- include: systemd.yml
+- include_tasks: systemd.yml
tags:
- systemd
-- include: postgresql.yml
+- include_tasks: postgresql.yml
tags:
- postgresql
name: mongod
enabled: true
-- include: systemd.yml
+- include_tasks: systemd.yml
notify:
- restart nginx
-- include: ssl.yml
+- include_tasks: ssl.yml
when: development_server == true
-- include: letsencrypt.yml
+- include_tasks: letsencrypt.yml
when: development_server == false
- name: link nginx config
# we probably messed up the previous commit+tag, so we chose to use 'clean'
# that will rollback that commit, delete the local and remote tag, and force
# push the new changes
-- include: clear_version.yml
+- include_tasks: clear_version.yml
when: (clean and last_commit.stdout == tag_name)
# if the last commit wasn't one that we already did, then go ahead and make
# the changes + tag for the release. Otherwise, just skip because it was
# already done for this release
-- include: release.yml
+- include_tasks: release.yml
when: (tag_name != last_commit.stdout)