Generalizzato il tipo d'installazione per 2/64 bit.

This commit is contained in:
Emiliano Vavassori 2020-05-23 18:01:21 +02:00
parent 9c859b60b8
commit 37941a6eb3
3 changed files with 19 additions and 7 deletions

View File

@ -5,11 +5,11 @@
state: present state: present
- get_url: - get_url:
url: 'https://download.anydesk.com/linux/anydesk_5.5.6-1_{{ ansible_architecture }}.deb' url: 'https://download.anydesk.com/linux/anydesk_5.5.6-1_{{ pkgarch }}.deb'
dest: '/tmp/anydesk_{{ ansible_architecture }}.deb' dest: '/tmp/anydesk_{{ pkgarch }}.deb'
- shell: dpkg -i '/tmp/anydesk_{{ ansible_architecture }}.deb' - shell: dpkg -i '/tmp/anydesk_{{ pkgarch }}.deb'
- file: - file:
dest: '/tmp/anydesk_{{ ansible_architecture }}.deb' dest: '/tmp/anydesk_{{ pkgarch }}.deb'
state: absent state: absent

View File

@ -11,4 +11,12 @@
hwpoints: 3 hwpoints: 3
when: ansible_memtotal_mb|int > 4096 and ansible_processor_vcpus|int >= 4 when: ansible_memtotal_mb|int > 4096 and ansible_processor_vcpus|int >= 4
- set_fact:
pkgarch: amd64
when: ansible_architecture == 'x86_64'
- set_fact:
pkgarch: i386
when: ansible_architecture == 'i386'
- setup: filter=ansible_local - setup: filter=ansible_local

View File

@ -2,9 +2,13 @@
- block: - block:
- get_url: - get_url:
url: "https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb" url: "https://dl.google.com/linux/direct/google-chrome-stable_current_{{ pkgarch }}.deb"
dest: /tmp/google-chrome-stable_current_amd64.deb dest: "/tmp/google-chrome-stable_current_{{ pkgarch }}.deb"
- shell: dpkg -i /tmp/google-chrome-stable_current_amd64.deb - shell: dpkg -i "/tmp/google-chrome-stable_current_{{ pkgarch }}.deb"
- file:
name: "/tmp/google-chrome-stable_current_{{ pkgarch }}.deb"
state: absent
when: hwpoints|int >= 2 when: hwpoints|int >= 2