mirror of
https://github.com/samuelclay/NewsBlur.git
synced 2025-09-18 21:50:56 +00:00
Removing etc/hosts role, adding makefile commands for using ansible-playbook
This commit is contained in:
parent
c1eff4c28e
commit
e485c46c46
3 changed files with 10 additions and 7 deletions
10
Makefile
10
Makefile
|
@ -60,6 +60,16 @@ list:
|
|||
ansible-deps:
|
||||
ansible-galaxy install -p roles -r ansible/roles/requirements.yml --roles-path ansible/roles
|
||||
|
||||
# Move to Terraform
|
||||
setup_do:
|
||||
ansible-playbook ansible/setup_do.yml -e "name=app01"
|
||||
|
||||
setup_root:
|
||||
ansible-playbook ansible/setup_root.yml -l app01
|
||||
|
||||
setup_app:
|
||||
ansible-playbook ansible/setup_app.yml
|
||||
|
||||
images:
|
||||
- docker image build . --file=docker/newsblur_base_image.Dockerfile --tag=newsblur/newsblur_python3
|
||||
- docker image build . --file=docker/node/node_prod.Dockerfile --tag=newsblur/node_prod
|
||||
|
|
|
@ -1,6 +0,0 @@
|
|||
---
|
||||
- name: "Build hosts file"
|
||||
lineinfile: dest=/etc/hosts regexp='.*{{ item }}$' line="{{ hostvars[item].ansible_default_ipv4.address }} {{item}}" state=present
|
||||
become: yes
|
||||
when: hostvars[item].ansible_default_ipv4.address is defined
|
||||
with_items: groups['all']
|
|
@ -12,4 +12,3 @@
|
|||
- docker
|
||||
- web
|
||||
- nginx
|
||||
- {role: etchosts, tags: 'etchosts'}
|
||||
|
|
Loading…
Add table
Reference in a new issue