refactor ansible code in to ansible-2.0 folder, and created space for ansible-2.10
This commit is contained in:
8
ansible-2.0/roles/user-richard/defaults/main.yml
Normal file
8
ansible-2.0/roles/user-richard/defaults/main.yml
Normal file
@@ -0,0 +1,8 @@
|
||||
---
|
||||
# defaults/main.yml
|
||||
# define default variable values here
|
||||
|
||||
user:
|
||||
name: richard
|
||||
group: richard
|
||||
home: /home/richard/
|
||||
9
ansible-2.0/roles/user-richard/handlers/main.yml
Normal file
9
ansible-2.0/roles/user-richard/handlers/main.yml
Normal file
@@ -0,0 +1,9 @@
|
||||
---
|
||||
# handlers/main.yml
|
||||
# define handlers here
|
||||
|
||||
#- name: restart <service>
|
||||
# service: name=<service> state=restarted
|
||||
|
||||
#- name: stop <service>
|
||||
# service: name=<service> state=stopped
|
||||
8
ansible-2.0/roles/user-richard/meta/main.yml
Normal file
8
ansible-2.0/roles/user-richard/meta/main.yml
Normal file
@@ -0,0 +1,8 @@
|
||||
---
|
||||
# meta/main.yml
|
||||
# define dependancies here
|
||||
|
||||
# dependencies:
|
||||
# - { role: geerlingguy.java }
|
||||
|
||||
dependencies: []
|
||||
6
ansible-2.0/roles/user-richard/tasks/main.yml
Normal file
6
ansible-2.0/roles/user-richard/tasks/main.yml
Normal file
@@ -0,0 +1,6 @@
|
||||
---
|
||||
# tasks/main.yml
|
||||
# define tasks here
|
||||
|
||||
- name: copy .procmailrc
|
||||
template: src=procmailrc.j2 dest={{ user.home }}/.procmailrc owner={{ user.name }} group={{ user.group }} mode=0640
|
||||
120
ansible-2.0/roles/user-richard/templates/procmailrc.j2
Normal file
120
ansible-2.0/roles/user-richard/templates/procmailrc.j2
Normal file
@@ -0,0 +1,120 @@
|
||||
# .procmailrc
|
||||
# routes incoming mail to appropriate mailboxes
|
||||
PATH=/usr/bin:/usr/local/bin
|
||||
MAILDIR=$HOME/Maildir/
|
||||
PMDIR=$MAILDIR
|
||||
LOGFILE=/var/log/procmail.log
|
||||
VERBOSE=yes
|
||||
LOGABSTRACT=no
|
||||
SHELL=/bin/sh
|
||||
DROPPRIVS=yes
|
||||
DELIVER=/usr/libexec/dovecot/deliver
|
||||
|
||||
# --------------------------------------------------
|
||||
# TEST
|
||||
#:0:
|
||||
#* ^Subject.*test
|
||||
#| $DELIVER -m Systems
|
||||
|
||||
# --------------------------------------------------
|
||||
# Family and Friends
|
||||
:0:
|
||||
* ^(From|Cc).*ellen.morgan@talk21.com
|
||||
* ^(From|Cc).*tessier_vero@hotmail.com
|
||||
* ^(From|Cc).*richard@xai-corp.net
|
||||
| $DELIVER -m Family
|
||||
|
||||
# --------------------------------------------------
|
||||
# Musicians
|
||||
:0:
|
||||
* ^(From|Cc).*m.a.berube@hotmail.com
|
||||
| $DELIVER -m Music
|
||||
|
||||
# --------------------------------------------------
|
||||
# Reverb Nation
|
||||
:0:
|
||||
* ^(From|Cc|To).*updates@reverbnation.com
|
||||
| $DELIVER -m Notifications
|
||||
|
||||
:0:
|
||||
* ^(From|Cc|To).*noreply@reverbnation.com
|
||||
| $DELIVER -m Publicity
|
||||
|
||||
# --------------------------------------------------
|
||||
# Code Project
|
||||
:0:
|
||||
* ^(From|Cc|To).*maillist.codeproject.com
|
||||
* ^(Subject).*(Offers)
|
||||
| $DELIVER -m Publicity
|
||||
|
||||
:0:
|
||||
* ^(From|Cc|To).*maillist.codeproject.com
|
||||
| $DELIVER -m Newsletters
|
||||
|
||||
|
||||
# --------------------------------------------------
|
||||
# Social Media Notifications
|
||||
:0:
|
||||
* ^(From|Cc).*@facebookmail.com
|
||||
| $DELIVER -m Notifications
|
||||
|
||||
:0:
|
||||
* ^(From|Cc).*@twitter.com
|
||||
| $DELIVER -m Notifications
|
||||
|
||||
|
||||
# --------------------------------------------------
|
||||
# Newsletters
|
||||
:0:
|
||||
* ^(From|Cc).*(dzone|messages4|folkalley|info.docker|accuradio).com
|
||||
| $DELIVER -m Newsletters
|
||||
|
||||
:0:
|
||||
* ^From.*news@linkedin.com
|
||||
| $DELIVER -m Newsletters
|
||||
|
||||
:0:
|
||||
* ^From.*news@linkedin.com
|
||||
| $DELIVER -m Newsletters
|
||||
|
||||
:0:
|
||||
* ^From.*aws-marketing-email-replies@amazon.com
|
||||
| $DELIVER -m Newsletters
|
||||
|
||||
:0:
|
||||
* ^From.*info@connectmusic.ca
|
||||
| $DELIVER -m Newsletters
|
||||
|
||||
# --------------------------------------------------
|
||||
# Paypal receipts
|
||||
:0:
|
||||
* ^From.*intl.paypal.com
|
||||
| $DELIVER -m Paypal
|
||||
|
||||
|
||||
# --------------------------------------------------
|
||||
# Publicity
|
||||
:0:
|
||||
* ^From.*e.paypal.com
|
||||
| $DELIVER -m Publicity
|
||||
|
||||
:0:
|
||||
* ^From.*@codeanywhere.net
|
||||
| $DELIVER -m Publicity
|
||||
|
||||
:0:
|
||||
* ^From.*Google(\+| Analytics| AdSense)
|
||||
| $DELIVER -m Publicity
|
||||
|
||||
:0:
|
||||
* ^From.*Netflix
|
||||
| $DELIVER -m Publicity
|
||||
|
||||
|
||||
|
||||
|
||||
# --------------------------------------------------
|
||||
# --------------------------------------------------
|
||||
# Default Inbox
|
||||
:0 w
|
||||
| $DELIVER
|
||||
10
ansible-2.0/roles/user-richard/vars/_extravars.yml
Normal file
10
ansible-2.0/roles/user-richard/vars/_extravars.yml
Normal file
@@ -0,0 +1,10 @@
|
||||
---
|
||||
# vars/_extravars.yml
|
||||
# define extra variable values here
|
||||
# this file should be loaded via an include_vars statement in the task.
|
||||
# often this is used for managing differences in os.
|
||||
|
||||
# Variable setup.
|
||||
#- name: Include OS-Specific variables
|
||||
# include_vars: "{{ ansible_os_family }}.yml"
|
||||
|
||||
Reference in New Issue
Block a user