46 lines
1.2 KiB
YAML
46 lines
1.2 KiB
YAML
- name: "aksusbd rpm install: copy file to device"
|
|
copy:
|
|
src: '{{ role_path }}/files/aksusbd-8.23-1.x86_64.rpm'
|
|
dest: /tmp/ansible_deploy/
|
|
|
|
- name: "download rpm packages: hasp_update"
|
|
yum:
|
|
name:
|
|
- "{{ hasp_update_rpm_version.hasp_update }}"
|
|
conf_file: "{{ rpm_repo_config_path }}"
|
|
state: present
|
|
download_only: yes
|
|
download_dir: "{{ path_download }}"
|
|
|
|
- name: "aksusbd rpm install: install aksusbd"
|
|
yum:
|
|
name:
|
|
- "/tmp/ansible_deploy/aksusbd-8.23-1.x86_64.rpm"
|
|
state: present
|
|
disable_gpg_check: yes
|
|
|
|
- name: "Get hasp_update rpm path"
|
|
find:
|
|
path: /tmp/rpm_download/
|
|
pattern: "{{ hasp_update_rpm_version.hasp_update }}*"
|
|
register: hasp_update_rpm_fullname
|
|
|
|
- name: "Install hasp_update from local path"
|
|
yum:
|
|
name: "{{ hasp_update_rpm_fullname.files[0].path }}"
|
|
state: present
|
|
disable_gpg_check: yes
|
|
|
|
- name: "Create /etc/tsg/licence/ directory if it does not exist"
|
|
file:
|
|
path: "{{ item }}"
|
|
state: directory
|
|
mode: '0755'
|
|
with_items:
|
|
- /etc/tsg/licence/
|
|
|
|
- name: "copy hasp.sh to /etc/profile.d/"
|
|
copy:
|
|
src: "{{ role_path }}/files/hasp.sh"
|
|
dest: /etc/profile.d/
|
|
mode: 0755 |