Debian Codegraph @

ansible_collections/dellemc/powerflex/roles/powerflex_common/tasks/install_packages_Ubuntu.yml

raw symbols SCIP
1 ---
2 - name: Copy files
3 ansible.builtin.unarchive:
4 src: "{{ item }}"
5 dest: "/var/tmp/"
6 mode: "0644"
7 register: powerflex_common_ubuntu_tar_file
8 with_fileglob:
9 - "{{ powerflex_common_file_install_location }}/*{{ file_glob_name }}*.tar"
10
11 - name: Get powerflex_common_siob_file # noqa: no-handler
12 ansible.builtin.find:
13 paths: "/var/tmp/"
14 patterns: "*{{ file_glob_name }}*.siob"
15 register: powerflex_common_siob_file
16 when: powerflex_common_ubuntu_tar_file.changed
17
18 - name: Execute chmod siob_extract # noqa: no-handler
19 ansible.builtin.file:
20 path: "/var/tmp/siob_extract"
21 mode: "0755"
22 when: powerflex_common_ubuntu_tar_file.changed
23
24 - name: Execute the siob_extract # noqa: no-handler
25 ansible.builtin.command:
26 cmd: /var/tmp/siob_extract "{{ powerflex_common_siob_file.files[0].path }}"
27 chdir: /var/tmp
28 when: powerflex_common_ubuntu_tar_file.changed
29 register: powerflex_common_siob_extract_output
30 changed_when: powerflex_common_siob_extract_output.rc == 0
31
32 - name: Copy deb file
33 ansible.builtin.copy:
34 src: "{{ item }}"
35 dest: "/var/tmp"
36 mode: "0644"
37 with_fileglob:
38 - "{{ powerflex_common_file_install_location }}/*{{ file_glob_name }}*.deb"
39 when: powerflex_common_ubuntu_tar_file.skipped
40
41 - name: List the deb file
42 register: powerflex_common_package_file
43 ansible.builtin.find:
44 paths: "/var/tmp/"
45 patterns: "*{{ file_glob_name }}*.deb"
46
47 - name: Install package
48 register: powerflex_common_install_package_output
49 environment: "{{ powerflex_role_environment }}"
50 ansible.builtin.package:
51 deb: "{{ powerflex_common_package_file.files[0].path }}"
52 state: "present"
53 disable_gpg_check: "{{ powerflex_gateway_disable_gpg_check | default(false) }}"