Fixing issue #4, ensuring APT stack is consistent. (#6)

Merging pull-request.
This commit is contained in:
Emiliano Vavassori 2017-01-23 01:12:04 +01:00 committed by GitHub
parent e6ac8c5c27
commit b4e45bc77d
3 changed files with 16 additions and 2 deletions

View File

@ -0,0 +1,9 @@
---
# Final tasks.
- name: Ensuring APT stack is healthy
shell: dpkg --configure -a && apt-get install -f
# Correctly managing ansible-pull runs.
- name: Updating local version for repo
shell: 'rm -f {{ ansible_local.checksum.repover_file }} && echo "{{ ansible_local.checksum.repover }}" > {{ ansible_local.checksum.repover_file }}'

View File

@ -57,5 +57,7 @@
- domain
- join
- name: Updating local version for repo
shell: 'rm -f {{ ansible_local.checksum.repover_file }} && echo "{{ ansible_local.checksum.repover }}" > {{ ansible_local.checksum.repover_file }}'
- include: cleanup.yml
tags:
- domain
- cleanup

View File

@ -1,5 +1,8 @@
---
- name: Fixing APT issues, every time.
shell: dpkg --configure -a && apt-get install -f
- name: Domain settings download
get_url:
url: "http://{{ ansible_default_ipv4.gateway }}:3000/domain"