summaryrefslogtreecommitdiff
path: root/ansible/playbooks
diff options
context:
space:
mode:
authorSrdjan Grubor <sgnn7@sgnn7.org>2014-01-16 17:41:29 -0600
committerSrdjan Grubor <sgnn7@sgnn7.org>2014-01-16 21:46:33 -0600
commite4bbb0f1dbc5bf838a542e57f69f4905f664d8ba (patch)
tree4a82176aa296109c7c5e00d89dc0070bd421d8de /ansible/playbooks
parente72fbbc70cf4cca953bc06d0c03037ce4d228ab4 (diff)
Added dev folder to desktop icons
Diffstat (limited to 'ansible/playbooks')
-rw-r--r--ansible/playbooks/kill_shell.yaml18
-rw-r--r--ansible/playbooks/setup_dev_folder.yaml16
-rw-r--r--ansible/playbooks/setup_dev_machine_root.yaml3
-rw-r--r--ansible/playbooks/setup_other_tools.yaml6
4 files changed, 43 insertions, 0 deletions
diff --git a/ansible/playbooks/kill_shell.yaml b/ansible/playbooks/kill_shell.yaml
new file mode 100644
index 0000000..408caa6
--- /dev/null
+++ b/ansible/playbooks/kill_shell.yaml
@@ -0,0 +1,18 @@
+---
+# vim:ff=unix ts=2 sw=2 ai expandtab
+
+###
+# Notice the minus on the line below -- this starts the playbook's record
+# in the YAML document. Only one playbook is allowed per YAML file. Indent
+# the body of the playbook.
+-
+ hosts: dev_machine
+
+ sudo: True
+
+ vars_files:
+ - "../default_variables.yaml"
+
+ tasks:
+ - name: "Setting default personality"
+ service: name=gdm state=restarted
diff --git a/ansible/playbooks/setup_dev_folder.yaml b/ansible/playbooks/setup_dev_folder.yaml
new file mode 100644
index 0000000..950a588
--- /dev/null
+++ b/ansible/playbooks/setup_dev_folder.yaml
@@ -0,0 +1,16 @@
+---
+# vim:ff=unix ts=2 sw=2 ai expandtab
+-
+ hosts: dev_machine
+
+ sudo: False
+
+ vars_files:
+ - "../default_variables.yaml"
+
+ tasks:
+ - name: "Copying python file for desktop generation"
+ copy: src=../templates/add_dev_tools_folder.py dest=~/ mode=755
+
+ - name: "Creating development tools folder"
+ shell: executable=/bin/bash export DISPLAY=:0; ~/add_dev_tools_folder.py &> ~/add_dev_tools_folder.log
diff --git a/ansible/playbooks/setup_dev_machine_root.yaml b/ansible/playbooks/setup_dev_machine_root.yaml
index 8a6f5df..731fdf9 100644
--- a/ansible/playbooks/setup_dev_machine_root.yaml
+++ b/ansible/playbooks/setup_dev_machine_root.yaml
@@ -15,3 +15,6 @@
tasks:
- include: setup_other_tools.yaml
+
+ - name: "Setting default personality"
+ shell: executable=/bin/bash eos-select-personality default
diff --git a/ansible/playbooks/setup_other_tools.yaml b/ansible/playbooks/setup_other_tools.yaml
index 126a68b..b9f05c1 100644
--- a/ansible/playbooks/setup_other_tools.yaml
+++ b/ansible/playbooks/setup_other_tools.yaml
@@ -16,3 +16,9 @@
- name: "Installing transifex client"
shell: pip install transifex-client
+
+- name: "Creating EOS links for various apps"
+ shell: cp /usr/share/applications/$item.desktop /usr/share/applications/eos-app-$item.desktop
+ with_items:
+ - gnome-terminal
+ - devhelp