Skip to content

Commit

Permalink
Tweak ansible
Browse files Browse the repository at this point in the history
  • Loading branch information
focusaurus committed Oct 6, 2018
1 parent caa71c0 commit d694765
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 11 deletions.
6 changes: 2 additions & 4 deletions deploy/playbook-data-repo.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,8 @@
repo_base: https://github.com/focusaurus
tasks:
- name: install prerequisites
apt: pkg={{item}}
with_items:
#static/data repo access
- git-core
pkg: ["git-core"]
apt:
- name: clone data repo
git:
repo: '{{repo_base}}/data.git'
Expand Down
8 changes: 2 additions & 6 deletions deploy/playbook-express.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,8 @@
service: name=monit state=restarted
tasks:
- name: install prerequisites
apt: pkg={{item}}
with_items:
#static/data repo access
- git-core
#For monitoring
- monit
apt:
pkg: ["git-core", "monit"]
- name: create {{express_user}} group
group: name={{express_user}}
- name: create {{express_user}} user
Expand Down
2 changes: 1 addition & 1 deletion deploy/playbook-nginx.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
service: name=nginx state=reloaded
- name: install weekly nginx reload cron job
copy:
content: "#/usr/bin/env bash\nservice nginx reload > /dev/null"
content: "#/usr/bin/env bash\nservice nginx reload > /dev/null\n"
force: true
group: "root"
mode: "0644"
Expand Down

0 comments on commit d694765

Please sign in to comment.