Make names neater

This commit is contained in:
Anthony Rose 2019-10-03 15:24:33 +01:00
parent c91c84c29b
commit 8529d3e7dd
2 changed files with 6 additions and 6 deletions

View file

@ -1,9 +1,9 @@
--- ---
- name: Clone emacs settings - name: Clone Emacs settings
git: git:
repo: https://git.acperkins.com/acp/emacs.d.git repo: https://git.acperkins.com/acp/emacs.d.git
dest: "{{ ansible_env.HOME }}/.emacs.d" dest: "{{ ansible_env.HOME }}/.emacs.d"
- name: Find emacs service definition - name: Find Emacs service definition
find: find:
paths: /usr/share/emacs paths: /usr/share/emacs
patterns: 'emacs.service' patterns: 'emacs.service'
@ -14,13 +14,13 @@
file: file:
path: "{{ ansible_env.HOME }}/.config/systemd/user" path: "{{ ansible_env.HOME }}/.config/systemd/user"
state: directory state: directory
- name: Create emacs user service - name: Create Emacs user service
copy: copy:
src: '{{ item.path }}' src: '{{ item.path }}'
dest: "{{ ansible_env.HOME }}/.config/systemd/user/emacs.service" dest: "{{ ansible_env.HOME }}/.config/systemd/user/emacs.service"
remote_src: yes remote_src: yes
loop: '{{ emacs_service_files.files }}' loop: '{{ emacs_service_files.files }}'
- name: Start emacs user service - name: Start Emacs user service
systemd: systemd:
name: emacs.service name: emacs.service
scope: user scope: user
@ -31,7 +31,7 @@
file: file:
path: "{{ ansible_env.HOME }}/.local/share/applications" path: "{{ ansible_env.HOME }}/.local/share/applications"
state: directory state: directory
- name: Create emacs client launcher - name: Create Emacs client launcher
copy: copy:
src: "{{ ansible_env.HOME }}/.emacs.d/emacs-client.desktop" src: "{{ ansible_env.HOME }}/.emacs.d/emacs-client.desktop"
dest: "{{ ansible_env.HOME }}/.local/share/applications/emacs-client.desktop" dest: "{{ ansible_env.HOME }}/.local/share/applications/emacs-client.desktop"

View file

@ -3,7 +3,7 @@
stat: stat:
path: "{{ ansible_env.HOME }}/.mozilla/firefox/profiles.ini" path: "{{ ansible_env.HOME }}/.mozilla/firefox/profiles.ini"
register: profile_ini register: profile_ini
- name: Get Firefox profile name - name: Copy Firefox preferences to Profile0
copy: copy:
src: user.js src: user.js
dest: "{{ ansible_env.HOME }}/.mozilla/firefox/{{ lookup('ini', 'Path section=Profile0 file={{ ansible_env.HOME }}/.mozilla/firefox/profiles.ini') }}/user.js" dest: "{{ ansible_env.HOME }}/.mozilla/firefox/{{ lookup('ini', 'Path section=Profile0 file={{ ansible_env.HOME }}/.mozilla/firefox/profiles.ini') }}/user.js"