Skip to content
Snippets Groups Projects
Commit cd4a3038 authored by Dylan Wheeler's avatar Dylan Wheeler
Browse files

feat: update group_vars to have variable for centos_repos and update the...

feat: update group_vars to have variable for centos_repos and update the related ansible playbook to pull from that variable
parent 971a0bdd
No related branches found
No related tags found
1 merge request!205FEAT: paramaterize centos repos
...@@ -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