Skip to content

Commit

Permalink
added some tasks
Browse files Browse the repository at this point in the history
  • Loading branch information
ddnomad committed Oct 28, 2017
1 parent b48930a commit 39aa628
Show file tree
Hide file tree
Showing 7 changed files with 20 additions and 4 deletions.
1 change: 1 addition & 0 deletions Vagrantfile
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ ANS_BP = ANS_PROPS['base_path'].freeze
ANS_CM = ANS_PROPS['comp_mode'].freeze
ANS_PB = ANS_PROPS['playbook'].freeze
ANS_CFG = ANS_PROPS['config'].freeze
ANS_REQ = ANS_PROPS['requirements_path'].freeze

# on-call commands to execute
ON_CALL_CMDS = VCONF['exec_on_call'].freeze
Expand Down
4 changes: 4 additions & 0 deletions ansible/roles/dev/tasks/install_ansible_deps.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# vi: set ft=yaml sw=2 :
---
- name: Install Ansible modules dependencies
raw: sudo apt-get install -y aptitude
2 changes: 2 additions & 0 deletions ansible/roles/dev/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,5 @@
- include_tasks: "{{ item }}"
with_items:
- push_shell_config.yml
- install_ansible_deps.yml
- system_update.yml
10 changes: 10 additions & 0 deletions ansible/roles/dev/tasks/system_update.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# vi: set ft=yaml sw=2 :
---
- name: Update apt-cache of Ubuntu guest
apt:
update_cache: yes
cache_valid_time: 3600

- name: Full update Ubuntu guest
apt:
upgrade: full
3 changes: 0 additions & 3 deletions ansible/vagrant_playbook.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,6 @@
- name: Configure SLRD backend application server for development environment
hosts: all

vars:
requirements_path: /vagrant/requirements.txt

remote_user: vagrant
become: true
become_method: sudo
Expand Down
1 change: 1 addition & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
python-gnupg
3 changes: 2 additions & 1 deletion vagrant.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# vi: set ft=yaml sw=2 :
---
# base box and configuration version
base_box: ubuntu/xenial64
Expand All @@ -14,8 +15,8 @@ vb_props:
ansible_props:
comp_mode: '2.0' # should be string
base_path: /vagrant/ansible
playbook: /vagrant/ansible/vagrant_playbook.yml
config: /vagrant/ansible/ansible.cfg
playbook: /vagrant/ansible/vagrant_playbook.yml

# what ports to forward to host
# <guest_port>: <to_host_port>
Expand Down

0 comments on commit 39aa628

Please sign in to comment.