ansible_role_install_wine

Ansible Role: Install Wine

License Ansible Galaxy CircleCI Ansible Galaxy Quality

Install Wine for Linux.

Work on

  platforms:
    - name: Fedora
      versions:
        - 33
        - 34
    - name: Ubuntu
      versions:
        - xenial
        - bionic
        - focal
    - name: Debian
      version:
        - stretch
        - buster
        - sid
    - name: opensuse
      vesrion:
        - tumbleweed
        - 15.3

Requirements

min_ansible_version: 2.6

Role Variables

#--- Version section ---#

wine_branch: stable
# wine_branch: devel
# wine_branch: staging

# wine_package_name: wine
# wine_package_name: winehq-stable
# wine_package_name: wine-mono
# wine_package_name: wine-nine-standalone-32bit
# wine_package_name: wine-staging-devel-32bit-debuginfo
# wine_package_name: any-package-you-like

wine_install_winetricks: true
# wine_install_winetricks: false

#--- Repo section ---#

wine_gpg_key: https://dl.winehq.org/wine-builds/winehq.key
wine_repo_deb_key: '{{ wine_gpg_key }}'
wine_repo_rpm_key: '{{ wine_gpg_key }}'

# If you *NOT* use apt-cacher-ng or other caching proxy - select "https".
http_or_https: http
# http_or_https: https

Dependencies

None.

HowTo

How to install role

Over ansible-galaxy:

ansible-galaxy install don_rumata.ansible_role_install_wine

Over bash+git:

mkdir -p "$HOME/.ansible/roles"
cd "$HOME/.ansible/roles"
git clone https://github.com/don-rumata/ansible-role-install-wine don_rumata.ansible_role_install_wine

Example Playbook

I

Install wine and winetricks on any supported Linux:

install-wine.yml:

- name: Install Wine
  hosts: all
  strategy: free
  serial:
    - "100%"
  roles:
    - don_rumata.ansible_role_install_wine
  tasks:

II

Install only wine, without winetricks:

install-wine.yml:

- name: Install Wine
  hosts: all
  strategy: free
  serial:
    - "100%"
  roles:
    - role: don_rumata.ansible_role_install_wine
      wine_install_winetricks: false
  tasks:

III

Install wine-devel-amd64, without winetricks:

install-wine.yml:

- name: Install Wine
  hosts: all
  strategy: free
  serial:
    - "100%"
  roles:
    - role: don_rumata.ansible_role_install_wine
      wine_install_winetricks: false
      wine_package_name: wine-devel-amd64
  tasks:

License

Apache License, Version 2.0

Author Information

don Rumata

TODO

  • Add tests.
  • Add more tests.
Install
ansible-galaxy install don-rumata/ansible-role-install-wine
GitHub repository
License
apache-2.0
Downloads
137
Owner
Здесь все бесполезно. Знаний не хватает, а золото теряет цену, потому что опаздывает.