Add tags to Ansible tasks.

This commit is contained in:
Scott Wallace 2017-11-24 18:42:08 +00:00
parent 3993f9b3bf
commit bbc35e6529
3 changed files with 22 additions and 0 deletions

View file

@ -1,10 +1,14 @@
# Install Homebrew # Install Homebrew
- name: Check for Homebrew - name: Check for Homebrew
tags:
- install
stat: stat:
path: /usr/local/bin/brew path: /usr/local/bin/brew
register: st register: st
- name: Install Homebrew - name: Install Homebrew
tags:
- install
command: ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" command: ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
when: st.stat.executable != True when: st.stat.executable != True
@ -13,6 +17,8 @@
# Taps # Taps
- name: Install Homebrew Taps - name: Install Homebrew Taps
tags:
- install
homebrew_tap: homebrew_tap:
name: "{{ item }}" name: "{{ item }}"
state: present state: present
@ -20,12 +26,16 @@
# Update and upgrades # Update and upgrades
- name: Homebrew update and upgrades - name: Homebrew update and upgrades
tags:
- install
homebrew: homebrew:
update_homebrew: True update_homebrew: True
upgrade_all: True upgrade_all: True
# Brews # Brews
- name: Install Homebrew Brews - name: Install Homebrew Brews
tags:
- install
homebrew: homebrew:
name: "{{ item }}" name: "{{ item }}"
state: present state: present
@ -33,6 +43,8 @@
# Casks # Casks
- name: Install Homebrew Casks - name: Install Homebrew Casks
tags:
- install
homebrew_cask: homebrew_cask:
name: "{{ item }}" name: "{{ item }}"
state: present state: present

View file

@ -1,2 +1,4 @@
- name: Upgrade App Store apps - name: Upgrade App Store apps
tags:
- upgrade
command: mas upgrade command: mas upgrade

View file

@ -1,12 +1,18 @@
- name: 'Firefox: Set base path' - name: 'Firefox: Set base path'
tags:
- config
set_fact: set_fact:
firefox_path: '~/Library/Application Support/Firefox' firefox_path: '~/Library/Application Support/Firefox'
- name: 'Firefox: Find profile path' - name: 'Firefox: Find profile path'
tags:
- config
set_fact: set_fact:
profile_path: "{{ lookup('ini', 'Path section=Profile0 file=' + firefox_path + '/profiles.ini') }}" profile_path: "{{ lookup('ini', 'Path section=Profile0 file=' + firefox_path + '/profiles.ini') }}"
- name: 'Firefox: Add local config' - name: 'Firefox: Add local config'
tags:
- config
copy: copy:
content: | content: |
user_pref("privacy.firstparty.isolate", true); user_pref("privacy.firstparty.isolate", true);
@ -34,4 +40,6 @@
mode: 0440 mode: 0440
- name: 'OS X: Clear preferences cache' - name: 'OS X: Clear preferences cache'
tags:
- config
command: pkill -u ${USER} cfprefsd command: pkill -u ${USER} cfprefsd