mirrorlist: fix last script referencing pkl
The script sync-old-pkl.yml (which is almost never used) was still referencing pkl instead of the new proto extension for the mirrorlist data exchange file. Now also using .proto. The name of the file is unchanged which is not correct anymore. Not sure if the filename is referenced in any documentation or SOP. Not changing it therefore right now. Signed-off-by: Adrian Reber <adrian@lisas.de>
This commit is contained in:
parent
32c7d9393e
commit
fc25f8e40d
1 changed files with 11 additions and 7 deletions
|
@ -8,20 +8,20 @@
|
||||||
- /srv/web/infra/ansible/vars/{{ ansible_distribution }}.yml
|
- /srv/web/infra/ansible/vars/{{ ansible_distribution }}.yml
|
||||||
|
|
||||||
tasks:
|
tasks:
|
||||||
- name: Copy borked pkl
|
- name: Copy borked proto
|
||||||
copy: src=/var/lib/mirrormanager/mirrorlist_cache.pkl dest=/root/mirrorlist_cache.pkl-{{ ansible_date_time.date }} remote_src=yes
|
copy: src=/var/lib/mirrormanager/mirrorlist_cache.proto dest=/root/mirrorlist_cache.proto-{{ ansible_date_time.date }} remote_src=yes
|
||||||
|
|
||||||
- name: Nuke borked pkl
|
- name: Nuke borked proto
|
||||||
file: path=/var/lib/mirrormanager/mirrorlist_cache.pkl state=absent
|
file: path=/var/lib/mirrormanager/mirrorlist_cache.proto state=absent
|
||||||
|
|
||||||
- name: Copy old pkl/files into place
|
- name: Copy old proto/files into place
|
||||||
copy: src=/var/lib/mirrormanager/old/{{item}} dest=/var/lib/mirrormanager/{{item}} force=yes remote_src=yes
|
copy: src=/var/lib/mirrormanager/old/{{item}} dest=/var/lib/mirrormanager/{{item}} force=yes remote_src=yes
|
||||||
with_items:
|
with_items:
|
||||||
- mirrorlist_cache.pkl
|
- mirrorlist_cache.proto
|
||||||
- i2_netblocks.txt
|
- i2_netblocks.txt
|
||||||
- global_netblocks.txt
|
- global_netblocks.txt
|
||||||
|
|
||||||
- name: Sync the pkl
|
- name: Sync the proto
|
||||||
command: /usr/local/bin/sync_pkl_to_mirrorlists.sh
|
command: /usr/local/bin/sync_pkl_to_mirrorlists.sh
|
||||||
become: yes
|
become: yes
|
||||||
become_user: mirrormanager
|
become_user: mirrormanager
|
||||||
|
@ -41,3 +41,7 @@
|
||||||
|
|
||||||
- name: Stop mirrorlist2
|
- name: Stop mirrorlist2
|
||||||
command: systemctl stop mirrorlist2
|
command: systemctl stop mirrorlist2
|
||||||
|
|
||||||
|
- name: Stop mirrorlist3
|
||||||
|
command: systemctl stop mirrorlist3
|
||||||
|
when: datacenter == 'phx2'
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue