Skip to content
Snippets Groups Projects
Commit 6ad59da4 authored by Bo-Chun Chen's avatar Bo-Chun Chen
Browse files

Merge branch 'feat-paramterize-centos-repos' into 'main'

FEAT: paramaterize centos repos

See merge request !205
parents 971a0bdd cd4a3038
No related branches found
No related tags found
1 merge request!205FEAT: paramaterize centos repos
Pipeline #14392 passed with stage
in 1 hour, 58 minutes, and 12 seconds
...@@ -89,3 +89,6 @@ ...@@ -89,3 +89,6 @@
node_exporter_user: node_exporter node_exporter_user: node_exporter
node_exporter_group: node_exporter node_exporter_group: node_exporter
node_exporter_port: 9100 node_exporter_port: 9100
# CentOS Repo
centos_base_url: "http://vault.centos.org"
...@@ -15,6 +15,6 @@ ...@@ -15,6 +15,6 @@
ansible.builtin.replace: ansible.builtin.replace:
path: "{{ item }}" path: "{{ item }}"
regexp: '^#baseurl=http://mirror.centos.org' regexp: '^#baseurl=http://mirror.centos.org'
replace: 'baseurl=http://vault.centos.org' replace: 'baseurl={{ centos_base_url }}'
backup: yes backup: yes
with_items: "{{ repo_files.stdout_lines }}" with_items: "{{ repo_files.stdout_lines }}"
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment