Merge "Use apt_repository update_cache feature"
This commit is contained in:
commit
9578fa9ee9
@ -29,6 +29,7 @@
|
|||||||
apt_repository:
|
apt_repository:
|
||||||
repo: "{{ novalink_repo.repo }}"
|
repo: "{{ novalink_repo.repo }}"
|
||||||
state: "{{ novalink_repo.state }}"
|
state: "{{ novalink_repo.state }}"
|
||||||
|
update_cache: yes
|
||||||
register: add_nv_repos
|
register: add_nv_repos
|
||||||
until: add_nv_repos|success
|
until: add_nv_repos|success
|
||||||
retries: 5
|
retries: 5
|
||||||
@ -36,16 +37,6 @@
|
|||||||
tags:
|
tags:
|
||||||
- novalink-repo
|
- novalink-repo
|
||||||
|
|
||||||
- name: Update apt if needed
|
|
||||||
apt:
|
|
||||||
update_cache: yes
|
|
||||||
when: add_nv_repos|changed
|
|
||||||
tags:
|
|
||||||
- nova-apt-packages
|
|
||||||
- nova-compute-powervm-apt-packages
|
|
||||||
# do not trigger ANSIBLE0016
|
|
||||||
- skip_ansible_lint
|
|
||||||
|
|
||||||
- name: Install apt packages
|
- name: Install apt packages
|
||||||
apt:
|
apt:
|
||||||
pkg: "{{ item }}"
|
pkg: "{{ item }}"
|
||||||
|
@ -17,6 +17,8 @@
|
|||||||
apt:
|
apt:
|
||||||
pkg: ubuntu-cloud-keyring
|
pkg: ubuntu-cloud-keyring
|
||||||
state: "{{ nova_package_state }}"
|
state: "{{ nova_package_state }}"
|
||||||
|
update_cache: yes
|
||||||
|
cache_valid_time: "{{ cache_timeout }}"
|
||||||
when: nova_uca_enable
|
when: nova_uca_enable
|
||||||
register: nova_uca_add_keys
|
register: nova_uca_add_keys
|
||||||
tags:
|
tags:
|
||||||
@ -26,6 +28,7 @@
|
|||||||
apt_repository:
|
apt_repository:
|
||||||
repo: "{{ uca_repo }}"
|
repo: "{{ uca_repo }}"
|
||||||
state: present
|
state: present
|
||||||
|
update_cache: yes
|
||||||
register: nova_uca_add_repo
|
register: nova_uca_add_repo
|
||||||
when: nova_uca_enable
|
when: nova_uca_enable
|
||||||
until: add_repo|success
|
until: add_repo|success
|
||||||
@ -34,13 +37,6 @@
|
|||||||
tags:
|
tags:
|
||||||
- add-uca-repo
|
- add-uca-repo
|
||||||
|
|
||||||
- name: Update apt if needed
|
|
||||||
apt:
|
|
||||||
update_cache: yes
|
|
||||||
when: nova_uca_add_keys | changed or nova_uca_add_repo | changed
|
|
||||||
tags:
|
|
||||||
- nova-apt-packages
|
|
||||||
|
|
||||||
- name: Install apt packages (common)
|
- name: Install apt packages (common)
|
||||||
apt:
|
apt:
|
||||||
pkg: "{{ item }}"
|
pkg: "{{ item }}"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user