Commit | Line | Data |
---|---|---|
a56cba07 KS |
1 | --- |
2 | ||
03c88e3e | 3 | - name: "Connect product '{{product}}' using full version" |
a56cba07 | 4 | ansible.builtin.command: |
e010056f | 5 | argv: ['SUSEConnect', '-p', "{{product}}/{{ansible_distribution_version}}/{{ansible_architecture}}"] |
a56cba07 KS |
6 | register: connect |
7 | ignore_errors: true | |
8 | # Some products don't use the full version, but only the major version | |
03c88e3e | 9 | - name: "Connect product '{{product}}' using major version" |
a56cba07 KS |
10 | when: connect.rc != 0 |
11 | ansible.builtin.command: | |
e010056f | 12 | argv: ['SUSEConnect', '-p', "{{product}}/{{ansible_distribution_major_version}}/{{ansible_architecture}}"] |