Commit fca95922 authored by Reimar Stier's avatar Reimar Stier Committed by Reimar Stier

add changes to role xfce-desktop

parent 54a232e8
FROM opensuse/tumbleweed
RUN zypper in -y ansible sudo rsyslog python3-pip systemd sudo iproute2
ENV LANG=en_US.UTF-8
ENV LC_ALL=en_US.UTF-8
# Install Ansible inventory file.
RUN mkdir -p /etc/ansible
RUN /bin/echo -e '[local]\nlocalhost ansible_connection=local' > /etc/ansible/hosts
COPY hello.yml /
# tests
RUN ansible-playbook hello.yml
RUN locale charmap
---
- name: test
hosts: localhost
connection: local
tasks:
- name: test
debug: msg="hello"
---
language: python
python: "2.7"
sudo: true
env:
- SITE=test.yml
before_install:
- sudo apt-get update -qq 1>/dev/null
install:
# Install Ansible.
- pip install ansible 1>/dev/null
# Add ansible.cfg to pick up roles path.
- "{ echo '[defaults]'; echo 'roles_path = ../'; } >> ansible.cfg"
script:
# Check the role/playbook's syntax.
- "ansible-playbook -i tests/inventory tests/$SITE --syntax-check"
# Run the role/playbook with ansible-playbook.
- "ansible-playbook -i tests/inventory tests/$SITE --connection=local --sudo"
# Run the role/playbook again, checking to make sure it's idempotent.
#- >
# ansible-playbook -i tests/inventory tests/$SITE --connection=local --sudo
# | grep -q 'changed=0.*failed=0'
# && (echo 'Idempotence test: pass' && exit 0)
# || (echo 'Idempotence test: fail' && exit 1)
notifications:
webhooks: https://galaxy.ansible.com/api/v1/notifications/
\ No newline at end of file
This diff is collapsed.
Ansible Role: xfce4-desktop
=====================
Build status for this role: [![Build Status](https://travis-ci.org/webofmars/ansible-xfce4-desktop.svg?branch=master)](https://travis-ci.org/webofmars/ansible-xfce4-desktop.svg?branch=master)
This role installs and configures Xfce4 Desktop on Ubuntu and Debian platforms
Requirements
------------
None.
Role Variables
--------------
Available variables are listed below, along with default values
**Debian**
```
xfce4_packages:
- xserver-xorg
- xfonts-base
- task-xfce-desktop
xfce4_login_manager_package: gdm3
xfce4_login_manager_service: gdm
xfce4_extra_packages: []
```
**Ubuntu**
```
xfce4_packages:
- xserver-xorg
- xfonts-base
- xubuntu-desktop
xfce4_login_manager_package: gdm
xfce4_login_manager_service: gdm
xfce4_extra_packages: []
```
Dependencies
------------
None.
Example Playbook
----------------
```
- hosts: all
become: yes
become_method: sudo
roles:
- role: webofmars.xfce4-desktop
```
This example will install Xfce4 Desktop.
License
-------
GPLv3
Author Information
------------------
Created by Frederic Leger / webofmars.
install_date: Sat Aug 31 08:28:06 2019
version: 1.1.3
---
galaxy_info:
author: Frederic Leger
description: Install Xfce Destop on server versions of Debian & Ubuntu
company: webofmars
license: GPLv3
min_ansible_version: 2.1
platforms:
#- name: EL
# versions:
# - all
# - 5
# - 6
# - 7
#- name: GenericUNIX
# versions:
# - all
# - any
#- name: Fedora
# versions:
# - all
# - 16
# - 17
# - 18
# - 19
# - 20
# - 21
# - 22
#- name: Windows
# versions:
# - all
# - 2012R2
#- name: SmartOS
# versions:
# - all
# - any
#- name: opensuse
# versions:
# - all
# - 12.1
# - 12.2
# - 12.3
# - 13.1
# - 13.2
#- name: Amazon
# versions:
# - all
# - 2013.03
# - 2013.09
#- name: GenericBSD
# versions:
# - all
# - any
#- name: FreeBSD
# versions:
# - all
# - 8.0
# - 8.1
# - 8.2
# - 8.3
# - 8.4
# - 9.0
# - 9.1
# - 9.1
# - 9.2
- name: Ubuntu
versions:
# - all
# - lucid
# - maverick
# - natty
# - oneiric
- trusty
- utopic
- vivid
- name: Debian
versions:
# - all
# - etch
- jessie
- lenny
# Below are all categories currently available. Just as with
# the platforms above, uncomment those that apply to your role.
#
categories:
#- cloud
#- cloud:ec2
#- cloud:gce
#- cloud:rax
#- clustering
#- database
#- database:nosql
#- database:sql
#- development
#- monitoring
#- networking
- packaging
- system
#- web
dependencies: []
\ No newline at end of file
- name: include variables for Debian platform
include_vars: Debian.yml
when: ansible_distribution == "Debian"
- name: include variables for Ubuntu platform
include_vars: Ubuntu.yml
when: ansible_distribution == "Ubuntu"
- debug: msg="{{ xfce4_login_manager_package }}"
- name: install xfce4 minimal packages
apt: name="{{ item }}" state="present"
with_items:
- "{{ xfce4_packages }}"
- "{{ xfce4_login_manager_package }}"
- name: install xfce4 extra packages
apt: name="{{ item }}" state="present"
with_items:
- "{{ xfce4_extra_packages }}"
- name: restart login manager service
service: name="{{ xfce4_login_manager_service }}" state="restarted"
localhost
\ No newline at end of file
---
- hosts: localhost
remote_user: root
roles:
- ansible-xfce4-desktop
\ No newline at end of file
xfce4_packages:
- xserver-xorg
- xfonts-base
- task-xfce-desktop
xfce4_login_manager_package: gdm3
xfce4_login_manager_service: gdm
xfce4_extra_packages: []
xfce4_packages:
- xserver-xorg
- xfonts-base
- xubuntu-desktop
xfce4_login_manager_package: gdm3
xfce4_login_manager_service: gdm
xfce4_extra_packages: []
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment