Use FQCN for module names
This commit is contained in:
parent
be273475c9
commit
8ba9437c89
17 changed files with 52 additions and 52 deletions
|
@ -1,11 +1,11 @@
|
||||||
---
|
---
|
||||||
- name: install packages
|
- name: install packages
|
||||||
package:
|
ansible.builtin.package:
|
||||||
name: cups-client
|
name: cups-client
|
||||||
state: installed
|
state: installed
|
||||||
|
|
||||||
- name: create config directory
|
- name: create config directory
|
||||||
file:
|
ansible.builtin.file:
|
||||||
path: /etc/cups
|
path: /etc/cups
|
||||||
state: directory
|
state: directory
|
||||||
mode: 0755
|
mode: 0755
|
||||||
|
@ -13,7 +13,7 @@
|
||||||
group: "{{ ansible_wheel }}"
|
group: "{{ ansible_wheel }}"
|
||||||
|
|
||||||
- name: create config
|
- name: create config
|
||||||
copy:
|
ansible.builtin.copy:
|
||||||
dest: /etc/cups/client.conf
|
dest: /etc/cups/client.conf
|
||||||
content: |
|
content: |
|
||||||
ServerName print.{{ mail_domain }}:443
|
ServerName print.{{ mail_domain }}:443
|
||||||
|
|
|
@ -1,10 +1,10 @@
|
||||||
---
|
---
|
||||||
- name: check support
|
- name: check support
|
||||||
fail:
|
ansible.builtin.fail:
|
||||||
msg: Role not supported in your system
|
msg: Role not supported in your system
|
||||||
when: ansible_os_family != "RedHat"
|
when: ansible_os_family != "RedHat"
|
||||||
|
|
||||||
- name: enable epel repository
|
- name: enable epel repository
|
||||||
package:
|
ansible.builtin.package:
|
||||||
name: epel-release
|
name: epel-release
|
||||||
state: installed
|
state: installed
|
||||||
|
|
|
@ -1,11 +1,11 @@
|
||||||
---
|
---
|
||||||
- name: install packages
|
- name: install packages
|
||||||
package:
|
ansible.builtin.package:
|
||||||
name: firefox
|
name: firefox
|
||||||
state: installed
|
state: installed
|
||||||
|
|
||||||
- name: create preferences directory
|
- name: create preferences directory
|
||||||
file:
|
ansible.builtin.file:
|
||||||
path: /usr/lib64/firefox/defaults/preferences
|
path: /usr/lib64/firefox/defaults/preferences
|
||||||
state: directory
|
state: directory
|
||||||
mode: 0755
|
mode: 0755
|
||||||
|
@ -13,7 +13,7 @@
|
||||||
group: "{{ ansible_wheel }}"
|
group: "{{ ansible_wheel }}"
|
||||||
|
|
||||||
- name: install default settings
|
- name: install default settings
|
||||||
copy:
|
ansible.builtin.copy:
|
||||||
dest: /usr/lib64/firefox/defaults/preferences/00-foo.sh.js
|
dest: /usr/lib64/firefox/defaults/preferences/00-foo.sh.js
|
||||||
src: foo.sh.js
|
src: foo.sh.js
|
||||||
mode: 0644
|
mode: 0644
|
||||||
|
|
|
@ -1,12 +1,12 @@
|
||||||
---
|
---
|
||||||
|
|
||||||
- name: install git packages
|
- name: install git packages
|
||||||
package:
|
ansible.builtin.package:
|
||||||
name: git
|
name: git
|
||||||
state: installed
|
state: installed
|
||||||
|
|
||||||
- name: create git config for sh based shells
|
- name: create git config for sh based shells
|
||||||
template:
|
ansible.builtin.template:
|
||||||
dest: /etc/profile.d/git.sh
|
dest: /etc/profile.d/git.sh
|
||||||
src: git.sh.j2
|
src: git.sh.j2
|
||||||
mode: 0644
|
mode: 0644
|
||||||
|
@ -14,7 +14,7 @@
|
||||||
group: root
|
group: root
|
||||||
|
|
||||||
- name: create git config for csh based shells
|
- name: create git config for csh based shells
|
||||||
template:
|
ansible.builtin.template:
|
||||||
dest: /etc/profile.d/git.csh
|
dest: /etc/profile.d/git.csh
|
||||||
src: git.csh.j2
|
src: git.csh.j2
|
||||||
mode: 0644
|
mode: 0644
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
---
|
---
|
||||||
- name: enable google chrome repository
|
- name: enable google chrome repository
|
||||||
yum_repository:
|
ansible.builtin.yum_repository:
|
||||||
name: google-chrome
|
name: google-chrome
|
||||||
baseurl: http://dl.google.com/linux/chrome/rpm/stable/x86_64
|
baseurl: http://dl.google.com/linux/chrome/rpm/stable/x86_64
|
||||||
description: Google Chrome
|
description: Google Chrome
|
||||||
|
@ -9,12 +9,12 @@
|
||||||
enabled: true
|
enabled: true
|
||||||
|
|
||||||
- name: "install google chrome"
|
- name: "install google chrome"
|
||||||
package:
|
ansible.builtin.package:
|
||||||
name: google-chrome-stable
|
name: google-chrome-stable
|
||||||
state: present
|
state: present
|
||||||
|
|
||||||
- name: "create google chrome policy directories"
|
- name: "create google chrome policy directories"
|
||||||
file:
|
ansible.builtin.file:
|
||||||
path: "{{ item }}"
|
path: "{{ item }}"
|
||||||
state: directory
|
state: directory
|
||||||
mode: 0755
|
mode: 0755
|
||||||
|
@ -25,7 +25,7 @@
|
||||||
- /etc/opt/chrome/policies/recommended
|
- /etc/opt/chrome/policies/recommended
|
||||||
|
|
||||||
- name: "install google chrome managed settings"
|
- name: "install google chrome managed settings"
|
||||||
copy:
|
ansible.builtin.copy:
|
||||||
dest: /etc/opt/chrome/policies/managed/foo.sh.json
|
dest: /etc/opt/chrome/policies/managed/foo.sh.json
|
||||||
src: managed.json
|
src: managed.json
|
||||||
mode: 0644
|
mode: 0644
|
||||||
|
@ -33,7 +33,7 @@
|
||||||
group: root
|
group: root
|
||||||
|
|
||||||
- name: "install google chrome recommended settings"
|
- name: "install google chrome recommended settings"
|
||||||
copy:
|
ansible.builtin.copy:
|
||||||
dest: /etc/opt/chrome/policies/recommended/foo.sh.json
|
dest: /etc/opt/chrome/policies/recommended/foo.sh.json
|
||||||
src: recommended.json
|
src: recommended.json
|
||||||
mode: 0644
|
mode: 0644
|
||||||
|
@ -41,7 +41,7 @@
|
||||||
group: root
|
group: root
|
||||||
|
|
||||||
- name: install custom chrome startup scripts
|
- name: install custom chrome startup scripts
|
||||||
copy:
|
ansible.builtin.copy:
|
||||||
dest: "/usr/local/bin/{{ item }}"
|
dest: "/usr/local/bin/{{ item }}"
|
||||||
src: "{{ item }}.sh"
|
src: "{{ item }}.sh"
|
||||||
mode: 0755
|
mode: 0755
|
||||||
|
|
|
@ -1,11 +1,11 @@
|
||||||
---
|
---
|
||||||
- name: install kerberos client packages
|
- name: install kerberos client packages
|
||||||
package:
|
ansible.builtin.package:
|
||||||
name: krb5-workstation
|
name: krb5-workstation
|
||||||
state: installed
|
state: installed
|
||||||
|
|
||||||
- name: configure kerberos client
|
- name: configure kerberos client
|
||||||
template:
|
ansible.builtin.template:
|
||||||
dest: /etc/krb5.conf.d/realm.conf
|
dest: /etc/krb5.conf.d/realm.conf
|
||||||
src: realm.conf.j2
|
src: realm.conf.j2
|
||||||
mode: 0644
|
mode: 0644
|
||||||
|
|
|
@ -1,12 +1,12 @@
|
||||||
---
|
---
|
||||||
|
|
||||||
- name: install packages
|
- name: install packages
|
||||||
package:
|
ansible.builtin.package:
|
||||||
name: openldap-clients
|
name: openldap-clients
|
||||||
state: installed
|
state: installed
|
||||||
|
|
||||||
- name: configure ldap client
|
- name: configure ldap client
|
||||||
template:
|
ansible.builtin.template:
|
||||||
dest: /etc/openldap/ldap.conf
|
dest: /etc/openldap/ldap.conf
|
||||||
src: ldap.conf.j2
|
src: ldap.conf.j2
|
||||||
mode: 0644
|
mode: 0644
|
||||||
|
@ -14,7 +14,7 @@
|
||||||
group: "{{ ansible_wheel }}"
|
group: "{{ ansible_wheel }}"
|
||||||
|
|
||||||
- name: authenticate to ldap with host certs when running as root
|
- name: authenticate to ldap with host certs when running as root
|
||||||
template:
|
ansible.builtin.template:
|
||||||
dest: /root/.ldaprc
|
dest: /root/.ldaprc
|
||||||
src: ldaprc.j2
|
src: ldaprc.j2
|
||||||
mode: 0600
|
mode: 0600
|
||||||
|
|
|
@ -1,11 +1,11 @@
|
||||||
---
|
---
|
||||||
- name: install packages
|
- name: install packages
|
||||||
package:
|
ansible.builtin.package:
|
||||||
name: lynx
|
name: lynx
|
||||||
state: installed
|
state: installed
|
||||||
|
|
||||||
- name: create site configuration
|
- name: create site configuration
|
||||||
copy:
|
ansible.builtin.copy:
|
||||||
dest: /etc/lynx-site.cfg
|
dest: /etc/lynx-site.cfg
|
||||||
src: lynx-site.cfg
|
src: lynx-site.cfg
|
||||||
mode: 0644
|
mode: 0644
|
||||||
|
@ -13,7 +13,7 @@
|
||||||
group: "{{ ansible_wheel }}"
|
group: "{{ ansible_wheel }}"
|
||||||
|
|
||||||
- name: install html2text script
|
- name: install html2text script
|
||||||
copy:
|
ansible.builtin.copy:
|
||||||
dest: /usr/local/bin/html2text
|
dest: /usr/local/bin/html2text
|
||||||
src: html2text.sh
|
src: html2text.sh
|
||||||
mode: 0755
|
mode: 0755
|
||||||
|
|
|
@ -1,11 +1,11 @@
|
||||||
---
|
---
|
||||||
- name: install packages
|
- name: install packages
|
||||||
package:
|
ansible.builtin.package:
|
||||||
name: mutt
|
name: mutt
|
||||||
state: installed
|
state: installed
|
||||||
|
|
||||||
- name: install global configuration
|
- name: install global configuration
|
||||||
template:
|
ansible.builtin.template:
|
||||||
dest: /etc/Muttrc.local
|
dest: /etc/Muttrc.local
|
||||||
src: Muttrc.local
|
src: Muttrc.local
|
||||||
mode: 0644
|
mode: 0644
|
||||||
|
@ -13,7 +13,7 @@
|
||||||
group: "{{ ansible_wheel }}"
|
group: "{{ ansible_wheel }}"
|
||||||
|
|
||||||
- name: install mutt-folder helper script
|
- name: install mutt-folder helper script
|
||||||
copy:
|
ansible.builtin.copy:
|
||||||
dest: /usr/local/bin/mutt-folder
|
dest: /usr/local/bin/mutt-folder
|
||||||
src: mutt-folder.sh
|
src: mutt-folder.sh
|
||||||
mode: 0755
|
mode: 0755
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
---
|
---
|
||||||
- name: install drivers
|
- name: install drivers
|
||||||
package:
|
ansible.builtin.package:
|
||||||
name: "{{ item }}"
|
name: "{{ item }}"
|
||||||
state: installed
|
state: installed
|
||||||
with_items:
|
with_items:
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
---
|
---
|
||||||
|
|
||||||
- name: install dependencies
|
- name: install dependencies
|
||||||
package:
|
ansible.builtin.package:
|
||||||
name: "{{ item }}"
|
name: "{{ item }}"
|
||||||
state: installed
|
state: installed
|
||||||
with_items:
|
with_items:
|
||||||
|
@ -9,14 +9,14 @@
|
||||||
- python3
|
- python3
|
||||||
|
|
||||||
- name: copy package
|
- name: copy package
|
||||||
git:
|
ansible.builtin.git:
|
||||||
dest: /usr/local/src/opencollab
|
dest: /usr/local/src/opencollab
|
||||||
repo: "https://github.com/graphingwiki/opencollab.git"
|
repo: "https://github.com/graphingwiki/opencollab.git"
|
||||||
umask: "0022"
|
umask: "0022"
|
||||||
version: python3
|
version: python3
|
||||||
|
|
||||||
- name: install package
|
- name: install package
|
||||||
pip:
|
ansible.builtin.pip:
|
||||||
name: /usr/local/src/opencollab
|
name: /usr/local/src/opencollab
|
||||||
umask: "0022"
|
umask: "0022"
|
||||||
executable: pip3
|
executable: pip3
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
---
|
---
|
||||||
- name: check if repository is enabled
|
- name: check if repository is enabled
|
||||||
command:
|
ansible.builtin.command:
|
||||||
argv:
|
argv:
|
||||||
- dnf
|
- dnf
|
||||||
- config-manager
|
- config-manager
|
||||||
|
@ -11,7 +11,7 @@
|
||||||
register: result
|
register: result
|
||||||
|
|
||||||
- name: enable repository
|
- name: enable repository
|
||||||
command:
|
ansible.builtin.command:
|
||||||
argv:
|
argv:
|
||||||
- dnf
|
- dnf
|
||||||
- config-manager
|
- config-manager
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
---
|
---
|
||||||
- name: install rpm signing key
|
- name: install rpm signing key
|
||||||
rpm_key:
|
ansible.builtin.rpm_key:
|
||||||
key: >
|
key: >
|
||||||
{{
|
{{
|
||||||
rpmfusion_free_keyurl + "RPM-GPG-KEY-rpmfusion-free-el-" +
|
rpmfusion_free_keyurl + "RPM-GPG-KEY-rpmfusion-free-el-" +
|
||||||
|
@ -10,7 +10,7 @@
|
||||||
when: 'ansible_distribution != "Fedora"'
|
when: 'ansible_distribution != "Fedora"'
|
||||||
|
|
||||||
- name: install rpm signing key
|
- name: install rpm signing key
|
||||||
rpm_key:
|
ansible.builtin.rpm_key:
|
||||||
key: >
|
key: >
|
||||||
{{
|
{{
|
||||||
rpmfusion_free_keyurl + "RPM-GPG-KEY-rpmfusion-free-fedora-2020"
|
rpmfusion_free_keyurl + "RPM-GPG-KEY-rpmfusion-free-fedora-2020"
|
||||||
|
@ -19,7 +19,7 @@
|
||||||
when: 'ansible_distribution == "Fedora"'
|
when: 'ansible_distribution == "Fedora"'
|
||||||
|
|
||||||
- name: enable repository
|
- name: enable repository
|
||||||
package:
|
ansible.builtin.package:
|
||||||
name: >
|
name: >
|
||||||
{{
|
{{
|
||||||
rpmfusion_free_baseurl + "/el/rpmfusion-free-release-" +
|
rpmfusion_free_baseurl + "/el/rpmfusion-free-release-" +
|
||||||
|
@ -29,7 +29,7 @@
|
||||||
when: 'ansible_distribution != "Fedora"'
|
when: 'ansible_distribution != "Fedora"'
|
||||||
|
|
||||||
- name: enable repository
|
- name: enable repository
|
||||||
package:
|
ansible.builtin.package:
|
||||||
name: >
|
name: >
|
||||||
{{
|
{{
|
||||||
rpmfusion_free_baseurl + "/fedora/rpmfusion-free-release-" +
|
rpmfusion_free_baseurl + "/fedora/rpmfusion-free-release-" +
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
---
|
---
|
||||||
- name: install rpm signing key
|
- name: install rpm signing key
|
||||||
rpm_key:
|
ansible.builtin.rpm_key:
|
||||||
key: >
|
key: >
|
||||||
{{
|
{{
|
||||||
rpmfusion_nonfree_keyurl + "RPM-GPG-KEY-rpmfusion-nonfree-el-" +
|
rpmfusion_nonfree_keyurl + "RPM-GPG-KEY-rpmfusion-nonfree-el-" +
|
||||||
|
@ -10,7 +10,7 @@
|
||||||
when: 'ansible_distribution != "Fedora"'
|
when: 'ansible_distribution != "Fedora"'
|
||||||
|
|
||||||
- name: install rpm signing key
|
- name: install rpm signing key
|
||||||
rpm_key:
|
ansible.builtin.rpm_key:
|
||||||
key: >
|
key: >
|
||||||
{{
|
{{
|
||||||
rpmfusion_nonfree_keyurl + "RPM-GPG-KEY-rpmfusion-nonfree-fedora-2020"
|
rpmfusion_nonfree_keyurl + "RPM-GPG-KEY-rpmfusion-nonfree-fedora-2020"
|
||||||
|
@ -19,7 +19,7 @@
|
||||||
when: 'ansible_distribution == "Fedora"'
|
when: 'ansible_distribution == "Fedora"'
|
||||||
|
|
||||||
- name: enable repository
|
- name: enable repository
|
||||||
package:
|
ansible.builtin.package:
|
||||||
name: >
|
name: >
|
||||||
{{
|
{{
|
||||||
rpmfusion_nonfree_baseurl + "/el/rpmfusion-nonfree-release-" +
|
rpmfusion_nonfree_baseurl + "/el/rpmfusion-nonfree-release-" +
|
||||||
|
@ -29,7 +29,7 @@
|
||||||
when: 'ansible_distribution != "Fedora"'
|
when: 'ansible_distribution != "Fedora"'
|
||||||
|
|
||||||
- name: enable repository
|
- name: enable repository
|
||||||
package:
|
ansible.builtin.package:
|
||||||
name: >
|
name: >
|
||||||
{{
|
{{
|
||||||
rpmfusion_nonfree_baseurl + "/fedora/rpmfusion-nonfree-release-" +
|
rpmfusion_nonfree_baseurl + "/fedora/rpmfusion-nonfree-release-" +
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
---
|
---
|
||||||
|
|
||||||
- name: enable repository
|
- name: enable repository
|
||||||
yum_repository:
|
ansible.builtin.yum_repository:
|
||||||
name: spotify
|
name: spotify
|
||||||
baseurl: https://negativo17.org/repos/spotify/fedora-$releasever/x86_64/
|
baseurl: https://negativo17.org/repos/spotify/fedora-$releasever/x86_64/
|
||||||
description: Spotify
|
description: Spotify
|
||||||
|
@ -10,6 +10,6 @@
|
||||||
enabled: true
|
enabled: true
|
||||||
|
|
||||||
- name: install spotify
|
- name: install spotify
|
||||||
package:
|
ansible.builtin.package:
|
||||||
name: spotify
|
name: spotify
|
||||||
state: present
|
state: present
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
---
|
---
|
||||||
- name: install thinlinc repository
|
- name: install thinlinc repository
|
||||||
yum_repository:
|
ansible.builtin.yum_repository:
|
||||||
name: thinlinc
|
name: thinlinc
|
||||||
baseurl: "https://mirrors.foo.sh/thinlinc/{{ ansible_architecture }}"
|
baseurl: "https://mirrors.foo.sh/thinlinc/{{ ansible_architecture }}"
|
||||||
description: Cendio Thinlinc
|
description: Cendio Thinlinc
|
||||||
|
@ -8,18 +8,18 @@
|
||||||
enabled: true
|
enabled: true
|
||||||
|
|
||||||
- name: install thinlinc client
|
- name: install thinlinc client
|
||||||
package:
|
ansible.builtin.package:
|
||||||
name: thinlinc-client
|
name: thinlinc-client
|
||||||
state: installed
|
state: installed
|
||||||
|
|
||||||
- name: set default server name
|
- name: set default server name
|
||||||
lineinfile:
|
ansible.builtin.lineinfile:
|
||||||
path: /opt/thinlinc/etc/tlclient.conf
|
path: /opt/thinlinc/etc/tlclient.conf
|
||||||
regexp: '^SERVER_NAME='
|
regexp: '^SERVER_NAME='
|
||||||
line: "SERVER_NAME=shell.foo.sh"
|
line: "SERVER_NAME=shell.foo.sh"
|
||||||
|
|
||||||
- name: disable fullscreen mode
|
- name: disable fullscreen mode
|
||||||
lineinfile:
|
ansible.builtin.lineinfile:
|
||||||
path: /opt/thinlinc/etc/tlclient.conf
|
path: /opt/thinlinc/etc/tlclient.conf
|
||||||
regexp: '^{{ item }}='
|
regexp: '^{{ item }}='
|
||||||
line: "{{ item }}=0"
|
line: "{{ item }}=0"
|
||||||
|
@ -28,13 +28,13 @@
|
||||||
- FULL_SCREEN_ALL_MONITORS
|
- FULL_SCREEN_ALL_MONITORS
|
||||||
|
|
||||||
- name: set default screen size
|
- name: set default screen size
|
||||||
lineinfile:
|
ansible.builtin.lineinfile:
|
||||||
path: /opt/thinlinc/etc/tlclient.conf
|
path: /opt/thinlinc/etc/tlclient.conf
|
||||||
regexp: '^SCREEN_SIZE_SELECTION='
|
regexp: '^SCREEN_SIZE_SELECTION='
|
||||||
line: "SCREEN_SIZE_SELECTION=2"
|
line: "SCREEN_SIZE_SELECTION=2"
|
||||||
|
|
||||||
- name: use kerberos authentication
|
- name: use kerberos authentication
|
||||||
lineinfile:
|
ansible.builtin.lineinfile:
|
||||||
path: /opt/thinlinc/etc/tlclient.conf
|
path: /opt/thinlinc/etc/tlclient.conf
|
||||||
regexp: '^AUTHENTICATION_METHOD='
|
regexp: '^AUTHENTICATION_METHOD='
|
||||||
line: "AUTHENTICATION_METHOD=kerberos"
|
line: "AUTHENTICATION_METHOD=kerberos"
|
||||||
|
|
|
@ -1,11 +1,11 @@
|
||||||
---
|
---
|
||||||
- name: install packages
|
- name: install packages
|
||||||
package:
|
ansible.builtin.package:
|
||||||
name: thunderbird
|
name: thunderbird
|
||||||
state: installed
|
state: installed
|
||||||
|
|
||||||
- name: install default settings
|
- name: install default settings
|
||||||
copy:
|
ansible.builtin.copy:
|
||||||
dest: /usr/lib64/thunderbird/defaults/pref/00-foo.sh.js
|
dest: /usr/lib64/thunderbird/defaults/pref/00-foo.sh.js
|
||||||
src: foo.sh.js
|
src: foo.sh.js
|
||||||
mode: 0644
|
mode: 0644
|
||||||
|
|
Loading…
Add table
Reference in a new issue