diff --git a/Vagrantfile b/Vagrantfile index d0848be..5d8f71f 100644 --- a/Vagrantfile +++ b/Vagrantfile @@ -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 diff --git a/ansible/roles/dev/tasks/install_ansible_deps.yml b/ansible/roles/dev/tasks/install_ansible_deps.yml new file mode 100644 index 0000000..8922e3d --- /dev/null +++ b/ansible/roles/dev/tasks/install_ansible_deps.yml @@ -0,0 +1,4 @@ +# vi: set ft=yaml sw=2 : +--- +- name: Install Ansible modules dependencies + raw: sudo apt-get install -y aptitude diff --git a/ansible/roles/dev/tasks/main.yml b/ansible/roles/dev/tasks/main.yml index c09c44a..09f7e40 100644 --- a/ansible/roles/dev/tasks/main.yml +++ b/ansible/roles/dev/tasks/main.yml @@ -3,3 +3,5 @@ - include_tasks: "{{ item }}" with_items: - push_shell_config.yml + - install_ansible_deps.yml + - system_update.yml diff --git a/ansible/roles/dev/tasks/system_update.yml b/ansible/roles/dev/tasks/system_update.yml new file mode 100644 index 0000000..60f48b9 --- /dev/null +++ b/ansible/roles/dev/tasks/system_update.yml @@ -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 diff --git a/ansible/vagrant_playbook.yml b/ansible/vagrant_playbook.yml index 0796838..5fd834e 100644 --- a/ansible/vagrant_playbook.yml +++ b/ansible/vagrant_playbook.yml @@ -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 diff --git a/requirements.txt b/requirements.txt index e69de29..45ce307 100644 --- a/requirements.txt +++ b/requirements.txt @@ -0,0 +1 @@ +python-gnupg diff --git a/vagrant.yml b/vagrant.yml index 81fb144..975f17d 100644 --- a/vagrant.yml +++ b/vagrant.yml @@ -1,3 +1,4 @@ +# vi: set ft=yaml sw=2 : --- # base box and configuration version base_box: ubuntu/xenial64 @@ -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 # :