Commit 28faee8f by Szeberényi Imre

ansible setup

parent adcf039f
This diff is collapsed. Click to expand it.
[Desktop Entry]
Encoding=UTF-8
Version=0.1
Version=1.0
Type=Application
Name=CIRCLE Client
Comment=Tool to enhance the use of the CIRCLE Cloud
Exec=circle %u
Icon=circle
Terminal=true
Exec=circle_client %u
Icon=circle_client
Terminal=false
MimeType=x-scheme-handler/circle;
Categories=Utility;Application;
Categories=Utility;
"""
This is a setup.py script generated by py2applet
Usage:
python setup.py py2app
"""
from setuptools import setup
APP = ['circle_client']
DATA_FILES = ['circle_client']
OPTIONS = {}
setup(
app=APP,
data_files=DATA_FILES,
options={'py2app': OPTIONS},
setup_requires=['py2app'],
)
---
- hosts: localhost
become: no
gather_facts: no
vars:
snap_installed: false
BIN_DIR: /usr/local/bin
APP_DIR: /usr/share/applications
ICON_DIR: /usr/share/icons
tasks:
- name: Check if snap installed
shell:
cmd: snap list
register: result
check_mode: false
changed_when: false
failed_when: false
- debug:
var: result.rc
- name: Set snap_installed
set_fact:
snap_installed: true
when: result.rc == 0
check_mode: false
- name: Report result
debug:
var: snap_installed
check_mode: false
- name: Install remmina via apt
apt:
name: remmina
state: present
when: not snap_installed
become: true
- name: Install remmina via snap
snap:
name:
- remmina
when: snap_installed
become: true
- name: ensures "{{ BIN_DIR }}i" dir exists
file:
path: "{{ BIN_DIR }}"
state: directory
mode: "0755"
- name: Install circle_clinet to "{{ BIN_DIR }}"
copy:
src: "circle_client"
dest: "{{ BIN_DIR }}/circle_client"
mode: "0755"
owner: "root"
become: true
- name: Install circle_client.destop" to "{{ APP_DIR }}"
copy:
src: "circle_client.desktop"
dest: "{{ APP_DIR }}/circle_client.desktop"
mode: "0644"
owner: "root"
become: true
notify:
- Update APP database
- name: Install circle_client.png" to "{{ ICON_DIR }}"
copy:
src: "circle_client.png"
dest: "{{ ICON_DIR }}/circle_client.png"
mode: "0644"
owner: "root"
become: true
handlers:
- name: Update APP database
command: update-desktop-database "{{ APP_DIR }}"
become: true
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 sign in to comment