diff options
Diffstat (limited to 'test/integration/targets/yum/tasks/repo.yml')
-rw-r--r-- | test/integration/targets/yum/tasks/repo.yml | 306 |
1 files changed, 153 insertions, 153 deletions
diff --git a/test/integration/targets/yum/tasks/repo.yml b/test/integration/targets/yum/tasks/repo.yml index 1172aac24b..6334a385fd 100644 --- a/test/integration/targets/yum/tasks/repo.yml +++ b/test/integration/targets/yum/tasks/repo.yml @@ -1,19 +1,19 @@ - block: - - name: Install foo-1.0-1 + - name: Install dinginessentail-1.0-1 yum: - name: foo-1.0-1 + name: dinginessentail-1.0-1 state: present register: yum_result - - name: Check foo with rpm - shell: rpm -q foo + - name: Check dinginessentail with rpm + shell: rpm -q dinginessentail register: rpm_result - name: Verify installation assert: that: - "yum_result.changed" - - "rpm_result.stdout.startswith('foo-1.0-1')" + - "rpm_result.stdout.startswith('dinginessentail-1.0-1')" - name: Verify yum module outputs assert: @@ -22,21 +22,21 @@ - "'rc' in yum_result" - "'results' in yum_result" # ============================================================================ - - name: Install foo-1.0-1 again + - name: Install dinginessentail-1.0-1 again yum: - name: foo-1.0-1 + name: dinginessentail-1.0-1 state: present register: yum_result - - name: Check foo with rpm - shell: rpm -q foo + - name: Check dinginessentail with rpm + shell: rpm -q dinginessentail register: rpm_result - name: Verify installation assert: that: - "not yum_result.changed" - - "rpm_result.stdout.startswith('foo-1.0-1')" + - "rpm_result.stdout.startswith('dinginessentail-1.0-1')" - name: Verify yum module outputs assert: @@ -45,21 +45,21 @@ - "'rc' in yum_result" - "'results' in yum_result" # ============================================================================ - - name: Install foo-1:1.0-2 + - name: Install dinginessentail-1:1.0-2 yum: - name: "foo-1:1.0-2.{{ ansible_architecture }}" + name: "dinginessentail-1:1.0-2.{{ ansible_architecture }}" state: present register: yum_result - - name: Check foo with rpm - shell: rpm -q foo + - name: Check dinginessentail with rpm + shell: rpm -q dinginessentail register: rpm_result - name: Verify installation assert: that: - "yum_result.changed" - - "rpm_result.stdout.startswith('foo-1.0-2')" + - "rpm_result.stdout.startswith('dinginessentail-1.0-2')" - name: Verify yum module outputs assert: @@ -68,27 +68,27 @@ - "'rc' in yum_result" - "'results' in yum_result" - - name: Remove foo + - name: Remove dinginessentail yum: - name: foo + name: dinginessentail state: absent # ============================================================================ - - name: Downgrade foo + - name: Downgrade dinginessentail yum: - name: foo-1.0-1 + name: dinginessentail-1.0-1 state: present allow_downgrade: yes register: yum_result - - name: Check foo with rpm - shell: rpm -q foo + - name: Check dinginessentail with rpm + shell: rpm -q dinginessentail register: rpm_result - name: Verify installation assert: that: - "yum_result.changed" - - "rpm_result.stdout.startswith('foo-1.0-1')" + - "rpm_result.stdout.startswith('dinginessentail-1.0-1')" - name: Verify yum module outputs assert: @@ -97,21 +97,21 @@ - "'rc' in yum_result" - "'results' in yum_result" # ============================================================================ - - name: Update to the latest foo + - name: Update to the latest dinginessentail yum: - name: foo + name: dinginessentail state: latest register: yum_result - - name: Check foo with rpm - shell: rpm -q foo + - name: Check dinginessentail with rpm + shell: rpm -q dinginessentail register: rpm_result - name: Verify installation assert: that: - "yum_result.changed" - - "rpm_result.stdout.startswith('foo-1.1-1')" + - "rpm_result.stdout.startswith('dinginessentail-1.1-1')" - name: Verify yum module outputs assert: @@ -120,21 +120,21 @@ - "'rc' in yum_result" - "'results' in yum_result" # ============================================================================ - - name: Install foo-1.0-1 from a file (higher version is already installed) + - name: Install dinginessentail-1.0-1 from a file (higher version is already installed) yum: - name: "{{ repodir }}/foo-1.0-1.{{ ansible_architecture }}.rpm" + name: "{{ repodir }}/dinginessentail-1.0-1.{{ ansible_architecture }}.rpm" state: present register: yum_result - - name: Check foo with rpm - shell: rpm -q foo + - name: Check dinginessentail with rpm + shell: rpm -q dinginessentail register: rpm_result - name: Verify installation assert: that: - "not yum_result.changed" - - "rpm_result.stdout.startswith('foo-1.1-1')" + - "rpm_result.stdout.startswith('dinginessentail-1.1-1')" - name: Verify yum module outputs assert: @@ -143,26 +143,26 @@ - "'rc' in yum_result" - "'results' in yum_result" - - name: Remove foo + - name: Remove dinginessentail yum: - name: foo + name: dinginessentail state: absent # ============================================================================ - - name: Install foo-1.0-1 from a file + - name: Install dinginessentail-1.0-1 from a file yum: - name: "{{ repodir }}/foo-1.0-1.{{ ansible_architecture }}.rpm" + name: "{{ repodir }}/dinginessentail-1.0-1.{{ ansible_architecture }}.rpm" state: present register: yum_result - - name: Check foo with rpm - shell: rpm -q foo + - name: Check dinginessentail with rpm + shell: rpm -q dinginessentail register: rpm_result - name: Verify installation assert: that: - "yum_result.changed" - - "rpm_result.stdout.startswith('foo-1.0-1')" + - "rpm_result.stdout.startswith('dinginessentail-1.0-1')" - name: Verify yum module outputs assert: @@ -171,21 +171,21 @@ - "'rc' in yum_result" - "'results' in yum_result" # ============================================================================ - - name: Install foo-1.0-1 from a file again + - name: Install dinginessentail-1.0-1 from a file again yum: - name: "{{ repodir }}/foo-1.0-1.{{ ansible_architecture }}.rpm" + name: "{{ repodir }}/dinginessentail-1.0-1.{{ ansible_architecture }}.rpm" state: present register: yum_result - - name: Check foo with rpm - shell: rpm -q foo + - name: Check dinginessentail with rpm + shell: rpm -q dinginessentail register: rpm_result - name: Verify installation assert: that: - "not yum_result.changed" - - "rpm_result.stdout.startswith('foo-1.0-1')" + - "rpm_result.stdout.startswith('dinginessentail-1.0-1')" - name: Verify yum module outputs assert: @@ -194,21 +194,21 @@ - "'rc' in yum_result" - "'results' in yum_result" # ============================================================================ - - name: Install foo-1.0-2 from a file + - name: Install dinginessentail-1.0-2 from a file yum: - name: "{{ repodir }}/foo-1.0-2.{{ ansible_architecture }}.rpm" + name: "{{ repodir }}/dinginessentail-1.0-2.{{ ansible_architecture }}.rpm" state: present register: yum_result - - name: Check foo with rpm - shell: rpm -q foo + - name: Check dinginessentail with rpm + shell: rpm -q dinginessentail register: rpm_result - name: Verify installation assert: that: - "yum_result.changed" - - "rpm_result.stdout.startswith('foo-1.0-2')" + - "rpm_result.stdout.startswith('dinginessentail-1.0-2')" - name: Verify yum module outputs assert: @@ -217,21 +217,21 @@ - "'rc' in yum_result" - "'results' in yum_result" # ============================================================================ - - name: Install foo-1.0-2 from a file again + - name: Install dinginessentail-1.0-2 from a file again yum: - name: "{{ repodir }}/foo-1.0-2.{{ ansible_architecture }}.rpm" + name: "{{ repodir }}/dinginessentail-1.0-2.{{ ansible_architecture }}.rpm" state: present register: yum_result - - name: Check foo with rpm - shell: rpm -q foo + - name: Check dinginessentail with rpm + shell: rpm -q dinginessentail register: rpm_result - name: Verify installation assert: that: - "not yum_result.changed" - - "rpm_result.stdout.startswith('foo-1.0-2')" + - "rpm_result.stdout.startswith('dinginessentail-1.0-2')" - name: Verify yum module outputs assert: @@ -240,22 +240,22 @@ - "'rc' in yum_result" - "'results' in yum_result" # ============================================================================ - - name: Try to downgrade foo without allow_downgrade being set + - name: Try to downgrade dinginessentail without allow_downgrade being set yum: - name: foo-1.0-1 + name: dinginessentail-1.0-1 state: present allow_downgrade: no register: yum_result - - name: Check foo with rpm - shell: rpm -q foo + - name: Check dinginessentail with rpm + shell: rpm -q dinginessentail register: rpm_result - name: Verify installation assert: that: - "not yum_result.changed" - - "rpm_result.stdout.startswith('foo-1.0-2')" + - "rpm_result.stdout.startswith('dinginessentail-1.0-2')" - name: Verify yum module outputs assert: @@ -264,22 +264,22 @@ - "'rc' in yum_result" - "'results' in yum_result" # ============================================================================ - - name: Update foo with update_only set + - name: Update dinginessentail with update_only set yum: - name: foo + name: dinginessentail state: latest update_only: yes register: yum_result - - name: Check foo with rpm - shell: rpm -q foo + - name: Check dinginessentail with rpm + shell: rpm -q dinginessentail register: rpm_result - name: Verify installation assert: that: - "yum_result.changed" - - "rpm_result.stdout.startswith('foo-1.1-1')" + - "rpm_result.stdout.startswith('dinginessentail-1.1-1')" - name: Verify yum module outputs assert: @@ -288,21 +288,21 @@ - "'rc' in yum_result" - "'results' in yum_result" - - name: Remove foo + - name: Remove dinginessentail yum: - name: foo + name: dinginessentail state: absent # ============================================================================ - - name: Try to update foo which is not installed, update_only is set + - name: Try to update dinginessentail which is not installed, update_only is set yum: - name: foo + name: dinginessentail state: latest update_only: yes register: yum_result ignore_errors: yes - - name: Check foo with rpm - shell: rpm -q foo + - name: Check dinginessentail with rpm + shell: rpm -q dinginessentail register: rpm_result ignore_errors: yes @@ -323,13 +323,13 @@ # ============================================================================ - name: Try to install incompatible arch yum: - name: "{{ repodir_ppc64 }}/foo-1.0-1.ppc64.rpm" + name: "{{ repodir_ppc64 }}/dinginessentail-1.0-1.ppc64.rpm" state: present register: yum_result ignore_errors: yes - - name: Check foo with rpm - shell: rpm -q foo + - name: Check dinginessentail with rpm + shell: rpm -q dinginessentail register: rpm_result ignore_errors: yes @@ -348,27 +348,27 @@ - "'rc' in yum_result" - "'results' in yum_result" # ============================================================================ - - name: Make sure latest foo is installed + - name: Make sure latest dinginessentail is installed yum: - name: foo + name: dinginessentail state: latest - - name: Downgrade foo using rpm file + - name: Downgrade dinginessentail using rpm file yum: - name: "{{ repodir }}/foo-1.0-1.{{ ansible_architecture }}.rpm" + name: "{{ repodir }}/dinginessentail-1.0-1.{{ ansible_architecture }}.rpm" state: present allow_downgrade: yes register: yum_result - - name: Check foo with rpm - shell: rpm -q foo + - name: Check dinginessentail with rpm + shell: rpm -q dinginessentail register: rpm_result - name: Verify installation assert: that: - "yum_result.changed" - - "rpm_result.stdout.startswith('foo-1.0-1')" + - "rpm_result.stdout.startswith('dinginessentail-1.0-1')" - name: Verify yum module outputs assert: @@ -378,35 +378,35 @@ - "'results' in yum_result" # ============================================================================ - block: - - name: make sure foo is not installed + - name: make sure dinginessentail is not installed yum: - name: foo + name: dinginessentail state: absent - - name: install foo both archs + - name: install dinginessentail both archs yum: name: "{{ item }}" state: present with_items: - - "{{ repodir }}/foo-1.1-1.x86_64.rpm" - - "{{ repodir_i686 }}/foo-1.1-1.i686.rpm" + - "{{ repodir }}/dinginessentail-1.1-1.x86_64.rpm" + - "{{ repodir_i686 }}/dinginessentail-1.1-1.i686.rpm" - - name: try to install lower version of foo from rpm file, without allow_downgrade, just one arch + - name: try to install lower version of dinginessentail from rpm file, without allow_downgrade, just one arch yum: - name: "{{ repodir_i686 }}/foo-1.0-1.i686.rpm" + name: "{{ repodir_i686 }}/dinginessentail-1.0-1.i686.rpm" state: present register: yum_result - - name: check foo with rpm - shell: rpm -q foo + - name: check dinginessentail with rpm + shell: rpm -q dinginessentail register: rpm_result - name: verify installation assert: that: - "not yum_result.changed" - - "rpm_result.stdout_lines[0].startswith('foo-1.1-1')" - - "rpm_result.stdout_lines[1].startswith('foo-1.1-1')" + - "rpm_result.stdout_lines[0].startswith('dinginessentail-1.1-1')" + - "rpm_result.stdout_lines[1].startswith('dinginessentail-1.1-1')" - name: verify yum module outputs assert: @@ -417,35 +417,35 @@ when: ansible_architecture == "x86_64" # ============================================================================ - block: - - name: make sure foo is not installed + - name: make sure dinginessentail is not installed yum: - name: foo + name: dinginessentail state: absent - - name: install foo both archs + - name: install dinginessentail both archs yum: name: "{{ item }}" state: present with_items: - - "{{ repodir }}/foo-1.0-1.x86_64.rpm" - - "{{ repodir_i686 }}/foo-1.0-1.i686.rpm" + - "{{ repodir }}/dinginessentail-1.0-1.x86_64.rpm" + - "{{ repodir_i686 }}/dinginessentail-1.0-1.i686.rpm" - name: Update both arch in one task using rpm files yum: - name: "{{ repodir }}/foo-1.1-1.x86_64.rpm,{{ repodir_i686 }}/foo-1.1-1.i686.rpm" + name: "{{ repodir }}/dinginessentail-1.1-1.x86_64.rpm,{{ repodir_i686 }}/dinginessentail-1.1-1.i686.rpm" state: present register: yum_result - - name: check foo with rpm - shell: rpm -q foo + - name: check dinginessentail with rpm + shell: rpm -q dinginessentail register: rpm_result - name: verify installation assert: that: - "yum_result.changed" - - "rpm_result.stdout_lines[0].startswith('foo-1.1-1')" - - "rpm_result.stdout_lines[1].startswith('foo-1.1-1')" + - "rpm_result.stdout_lines[0].startswith('dinginessentail-1.1-1')" + - "rpm_result.stdout_lines[1].startswith('dinginessentail-1.1-1')" - name: verify yum module outputs assert: @@ -458,28 +458,28 @@ always: - name: Clean up yum: - name: foo + name: dinginessentail state: absent # FIXME: dnf currently doesn't support epoch as part of it's pkg_spec for # finding install candidates # https://bugzilla.redhat.com/show_bug.cgi?id=1619687 - block: - - name: Install 1:foo-1.0-2 + - name: Install 1:dinginessentail-1.0-2 yum: - name: "1:foo-1.0-2.{{ ansible_architecture }}" + name: "1:dinginessentail-1.0-2.{{ ansible_architecture }}" state: present register: yum_result - - name: Check foo with rpm - shell: rpm -q foo + - name: Check dinginessentail with rpm + shell: rpm -q dinginessentail register: rpm_result - name: Verify installation assert: that: - "yum_result.changed" - - "rpm_result.stdout.startswith('foo-1.0-2')" + - "rpm_result.stdout.startswith('dinginessentail-1.0-2')" - name: Verify yum module outputs assert: @@ -490,7 +490,7 @@ always: - name: Clean up yum: - name: foo + name: dinginessentail state: absent when: ansible_pkg_mgr == 'yum' @@ -505,21 +505,21 @@ # upstreams - block: # ============================================================================ - - name: Install foo-1.0-2 + - name: Install dinginessentail-1.0-2 yum: - name: "foo-1.0-2.{{ ansible_architecture }}" + name: "dinginessentail-1.0-2.{{ ansible_architecture }}" state: present register: yum_result - - name: Check foo with rpm - shell: rpm -q foo + - name: Check dinginessentail with rpm + shell: rpm -q dinginessentail register: rpm_result - name: Verify installation assert: that: - "yum_result.changed" - - "rpm_result.stdout.startswith('foo-1.0-2')" + - "rpm_result.stdout.startswith('dinginessentail-1.0-2')" - name: Verify yum module outputs assert: @@ -528,21 +528,21 @@ - "'rc' in yum_result" - "'results' in yum_result" - - name: Install foo-1.0-2 again + - name: Install dinginessentail-1.0-2 again yum: - name: foo-1.0-2 + name: dinginessentail-1.0-2 state: present register: yum_result - - name: Check foo with rpm - shell: rpm -q foo + - name: Check dinginessentail with rpm + shell: rpm -q dinginessentail register: rpm_result - name: Verify installation assert: that: - "not yum_result.changed" - - "rpm_result.stdout.startswith('foo-1.0-2')" + - "rpm_result.stdout.startswith('dinginessentail-1.0-2')" - name: Verify yum module outputs assert: @@ -553,27 +553,27 @@ always: - name: Clean up yum: - name: foo + name: dinginessentail state: absent when: not (ansible_distribution == "Fedora" and ansible_distribution_major_version|int < 26) # https://github.com/ansible/ansible/issues/47689 - block: - - name: Install foo == 1.0 + - name: Install dinginessentail == 1.0 yum: - name: "foo == 1.0" + name: "dinginessentail == 1.0" state: present register: yum_result - - name: Check foo with rpm - shell: rpm -q foo + - name: Check dinginessentail with rpm + shell: rpm -q dinginessentail register: rpm_result - name: Verify installation assert: that: - "yum_result.changed" - - "rpm_result.stdout.startswith('foo-1.0-1')" + - "rpm_result.stdout.startswith('dinginessentail-1.0-1')" - name: Verify yum module outputs assert: @@ -584,7 +584,7 @@ always: - name: Clean up yum: - name: foo + name: dinginessentail state: absent when: ansible_pkg_mgr == 'yum' @@ -592,37 +592,37 @@ # https://github.com/ansible/ansible/pull/54603 - block: - - name: Install foo < 1.1 + - name: Install dinginessentail < 1.1 yum: - name: "foo < 1.1" + name: "dinginessentail < 1.1" state: present register: yum_result - - name: Check foo with rpm - shell: rpm -q foo + - name: Check dinginessentail with rpm + shell: rpm -q dinginessentail register: rpm_result - name: Verify installation assert: that: - "yum_result.changed" - - "rpm_result.stdout.startswith('foo-1.0')" + - "rpm_result.stdout.startswith('dinginessentail-1.0')" - - name: Install foo >= 1.1 + - name: Install dinginessentail >= 1.1 yum: - name: "foo >= 1.1" + name: "dinginessentail >= 1.1" state: present register: yum_result - - name: Check foo with rpm - shell: rpm -q foo + - name: Check dinginessentail with rpm + shell: rpm -q dinginessentail register: rpm_result - name: Verify installation assert: that: - "yum_result.changed" - - "rpm_result.stdout.startswith('foo-1.1')" + - "rpm_result.stdout.startswith('dinginessentail-1.1')" - name: Verify yum module outputs assert: @@ -634,50 +634,50 @@ always: - name: Clean up yum: - name: foo + name: dinginessentail state: absent when: ansible_pkg_mgr == 'yum' # https://github.com/ansible/ansible/issues/45250 - block: - - name: Install foo-1.0, foo-bar-1.0, bar-1.0 + - name: Install dinginessentail-1.0, dinginessentail-olive-1.0, landsidescalping-1.0 yum: - name: "foo-1.0,foo-bar-1.0,bar-1.0" + name: "dinginessentail-1.0,dinginessentail-olive-1.0,landsidescalping-1.0" state: present - - name: Upgrade foo* + - name: Upgrade dinginessentail* yum: - name: foo* + name: dinginessentail* state: latest register: yum_result - - name: Check foo with rpm - shell: rpm -q foo + - name: Check dinginessentail with rpm + shell: rpm -q dinginessentail register: rpm_result - - name: Verify update of foo + - name: Verify update of dinginessentail assert: that: - - "rpm_result.stdout.startswith('foo-1.1-1')" + - "rpm_result.stdout.startswith('dinginessentail-1.1-1')" - - name: Check foo-bar with rpm - shell: rpm -q foo-bar + - name: Check dinginessentail-olive with rpm + shell: rpm -q dinginessentail-olive register: rpm_result - - name: Verify update of foo-bar + - name: Verify update of dinginessentail-olive assert: that: - - "rpm_result.stdout.startswith('foo-bar-1.1-1')" + - "rpm_result.stdout.startswith('dinginessentail-olive-1.1-1')" - - name: Check bar with rpm - shell: rpm -q bar + - name: Check landsidescalping with rpm + shell: rpm -q landsidescalping register: rpm_result - - name: Verify bar did NOT get updated + - name: Verify landsidescalping did NOT get updated assert: that: - - "rpm_result.stdout.startswith('bar-1.0-1')" + - "rpm_result.stdout.startswith('landsidescalping-1.0-1')" - name: Verify yum module outputs assert: @@ -689,5 +689,5 @@ always: - name: Clean up yum: - name: foo,foo-bar,bar + name: dinginessentail,dinginessentail-olive,landsidescalping state: absent |