Merge pull request #1449 from mhkarimi1383/ansible-unofficial
making it functional when you have a minimal hostansible-unofficial
commit
c742153d4d
@ -0,0 +1,11 @@
|
|||||||
|
---
|
||||||
|
- name: Ensure {{inventory_hostname}} is set as hostname
|
||||||
|
hostname:
|
||||||
|
name: "{{inventory_hostname}}"
|
||||||
|
tags: ["hostname"]
|
||||||
|
|
||||||
|
- include_tasks: setup-RedHat.yml
|
||||||
|
when: ansible_os_family == 'RedHat'
|
||||||
|
|
||||||
|
- include_tasks: setup-Debian.yml
|
||||||
|
when: ansible_os_family == 'Debian'
|
@ -0,0 +1,9 @@
|
|||||||
|
- name: Ensure packages for some requirements are installed
|
||||||
|
apt:
|
||||||
|
pkg:
|
||||||
|
- libffi-dev
|
||||||
|
- libzbar-dev
|
||||||
|
- libzbar0
|
||||||
|
- python3-docopt
|
||||||
|
update_cache: yes
|
||||||
|
state: present
|
@ -0,0 +1,9 @@
|
|||||||
|
- name: Ensure packages for some requirements are installed
|
||||||
|
dnf:
|
||||||
|
name:
|
||||||
|
- libffi-devel
|
||||||
|
- zbar-devel
|
||||||
|
- zbar
|
||||||
|
- python3-docopt
|
||||||
|
update_cache: yes
|
||||||
|
state: present
|
Loading…
Reference in new issue