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

View file

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

View file

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