]> git.apps.os.sepia.ceph.com Git - ceph-ansible.git/commitdiff
tests: disable internal repos
authorGuillaume Abrioux <gabrioux@redhat.com>
Thu, 16 Mar 2023 16:43:03 +0000 (17:43 +0100)
committerTeoman ONAY <tonay@redhat.com>
Mon, 20 Mar 2023 10:04:07 +0000 (11:04 +0100)
they are broken at the moment.

Signed-off-by: Guillaume Abrioux <gabrioux@redhat.com>
tests/functional/setup.yml

index d06a6e90a56092df1566d741c2f259c4d87d3fb0..1ec526507b8365e77f79c30b817eb060a308ccd3 100644 (file)
       set_fact:
         is_atomic: '{{ stat_ostree.stat.exists }}'
 
-    - name: List repo files
-      find:
-        paths: /etc/yum.repos.d/
-        file_type: file
-        patterns: 'CentOS-Stream-*.repo'
-      register: pre_stream_repo_files
-      when:
-        - ansible_facts['distribution'] == 'CentOS'
-        - ansible_facts['distribution_major_version'] | int > 7
-        - not is_atomic | bool
-
-    # From ansible docs: 'replace: If not set, matches are removed entirely.'
-    - name: Remove all mirrorlists
-      replace:
-        path: "{{ item.path }}"
-        regexp: '^mirrorlist=.*'
-      with_items: "{{ pre_stream_repo_files.files }}"
-      when:
-        - ansible_facts['distribution'] == 'CentOS'
-        - ansible_facts['distribution_major_version'] | int > 7
-        - not is_atomic | bool
-
-    - name: Uncomment baseurls
-      replace:
-        path: "{{ item.path }}"
-        regexp: '^mirrorlist=.*'
-        regexp: '^\s*#*\s*(baseurl=.*)'
-        replace: '\1'
-      with_items: "{{ pre_stream_repo_files.files }}"
-      when:
-        - ansible_facts['distribution'] == 'CentOS'
-        - ansible_facts['distribution_major_version'] | int > 7
-        - not is_atomic | bool
-
-    - name: Point baseurls to archive server
-      replace:
-        path: "{{ item.path }}"
-        regexp: 'mirror.centos.org/\$contentdir/\$stream'
-        replace: 'apt-mirror.front.sepia.ceph.com/centos/8-stream'
-      with_items: "{{ pre_stream_repo_files.files }}"
-      when:
-        - ansible_facts['distribution'] == 'CentOS'
-        - ansible_facts['distribution_major_version'] | int > 7
-        - not is_atomic | bool
+          #    - name: List repo files
+          #      find:
+          #        paths: /etc/yum.repos.d/
+          #        file_type: file
+          #        patterns: 'CentOS-Stream-*.repo'
+          #      register: pre_stream_repo_files
+          #      when:
+          #        - ansible_facts['distribution'] == 'CentOS'
+          #        - ansible_facts['distribution_major_version'] | int > 7
+          #        - not is_atomic | bool
+          #
+          #    # From ansible docs: 'replace: If not set, matches are removed entirely.'
+          #    - name: Remove all mirrorlists
+          #      replace:
+          #        path: "{{ item.path }}"
+          #        regexp: '^mirrorlist=.*'
+          #      with_items: "{{ pre_stream_repo_files.files }}"
+          #      when:
+          #        - ansible_facts['distribution'] == 'CentOS'
+          #        - ansible_facts['distribution_major_version'] | int > 7
+          #        - not is_atomic | bool
+          #
+          #    - name: Uncomment baseurls
+          #      replace:
+          #        path: "{{ item.path }}"
+          #        regexp: '^mirrorlist=.*'
+          #        regexp: '^\s*#*\s*(baseurl=.*)'
+          #        replace: '\1'
+          #      with_items: "{{ pre_stream_repo_files.files }}"
+          #      when:
+          #        - ansible_facts['distribution'] == 'CentOS'
+          #        - ansible_facts['distribution_major_version'] | int > 7
+          #        - not is_atomic | bool
+          #
+          #    - name: Point baseurls to archive server
+          #      replace:
+          #        path: "{{ item.path }}"
+          #        regexp: 'mirror.centos.org/\$contentdir/\$stream'
+          #        replace: 'apt-mirror.front.sepia.ceph.com/centos/8-stream'
+          #      with_items: "{{ pre_stream_repo_files.files }}"
+          #      when:
+          #        - ansible_facts['distribution'] == 'CentOS'
+          #        - ansible_facts['distribution_major_version'] | int > 7
+          #        - not is_atomic | bool
 
     - name: update the system
       command: dnf update -y