mirror of
https://github.com/jcwimer/startup-infrastructure
synced 2026-03-24 22:34:42 +00:00
29 lines
773 B
YAML
29 lines
773 B
YAML
---
|
|
# This playbook deploys a development machine
|
|
# EXAMPLE:
|
|
# ansible-playbook -i ${project_dir}/hosts ${project_dir}/playbooks/site.yml \
|
|
# -extra-vars "home_pub_key=<pub-key-location-to-curl> standard_user=<user_name> git_user=<git-user> git_email=<git-email>"
|
|
|
|
- name: Install ansible dependencies
|
|
hosts: all
|
|
user: root
|
|
gather_facts: no
|
|
serial: 100%
|
|
tasks:
|
|
- include: ../roles/ansible-dependencies/tasks/main.yml
|
|
|
|
- name: Apply common configuration to all nodes
|
|
hosts: all
|
|
user: root
|
|
serial: 100%
|
|
tasks:
|
|
- include: ../roles/common/tasks/main.yml
|
|
|
|
- import_playbook: swarm.yml
|
|
|
|
- name: Deploy startup-infrastructure swarm stack
|
|
hosts: bootstrap
|
|
user: root
|
|
serial: 100%
|
|
tasks:
|
|
- include: ../roles/startup-infrastructure/tasks/main.yml |