Skip to content

Commit

Permalink
Fix #553
Browse files Browse the repository at this point in the history
  • Loading branch information
micafer committed Feb 14, 2018
1 parent a501342 commit 2625601
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions contextualization/basic.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,11 @@
when: ansible_distribution == "Ubuntu"
ignore_errors: yes
register: apt_update
become: yes
become_method: sudo

- name: Ubuntu force apt update (avoid apt lock)
command: apt update
when: ansible_distribution == "Ubuntu" and apt_update|failed
become: yes
become_method: sudo

0 comments on commit 2625601

Please sign in to comment.