chexpire-ansible/config.yml

40 lines
790 B
YAML
Raw Permalink Normal View History

2019-09-09 23:24:54 +02:00
---
- hosts: all
gather_facts: yes
become: yes
vars_files:
- vars/main.yml
roles:
2019-09-10 22:56:33 +02:00
- { role: rbenv, username: "{{ ansible_user }}", rbenv_ruby_version: "{{ ruby_version }}" }
- { role: nodejs, nodejs_install_yarn: yes }
2019-09-09 23:24:54 +02:00
- chexpire-admin-init
post_tasks:
- include_role:
name: etc-git
tasks_from: commit.yml
vars:
commit_message: "Ansible post-run config.yml"
- hosts: all
vars_files:
- vars/main.yml
roles:
- { role: chexpire-user-init, username: "{{ ansible_user }}" }
2019-09-10 22:56:33 +02:00
2019-09-11 14:47:22 +02:00
- hosts: all
gather_facts: yes
become: yes
vars_files:
- vars/main.yml
roles:
- apache-vhost
- puma-systemd
2019-09-10 22:56:33 +02:00
tasks:
- name: Puma systemd unit is started
systemd:
name: puma-chexpire
state: started