lech ansible
parent
90aec2b881
commit
3109e6961c
|
@ -169,26 +169,16 @@ interfaces = 64.112.38.10/30 eno1
|
||||||
|
|
||||||
#======================= Share Definitions =======================
|
#======================= Share Definitions =======================
|
||||||
|
|
||||||
[pew-organized-photos]
|
[pew-photos]
|
||||||
comment = pew's organized photos
|
comment = pew's photos
|
||||||
browseable = yes
|
browseable = yes
|
||||||
path = /mammoth/tmp/pew-organized-photos
|
path = /mammoth/tmp/pew-photos
|
||||||
guest ok = no
|
guest ok = no
|
||||||
read only = yes
|
read only = yes
|
||||||
create mask = 0644
|
create mask = 0644
|
||||||
directory mask = 0755
|
directory mask = 0755
|
||||||
valid users = paul
|
valid users = paul
|
||||||
|
|
||||||
[pew-unorganized-photos]
|
|
||||||
comment = pew's unorganized photos
|
|
||||||
browseable = yes
|
|
||||||
path = /mammoth/tmp/pew-unorganized-photos
|
|
||||||
guest ok = no
|
|
||||||
read only = no
|
|
||||||
create mask = 0644
|
|
||||||
directory mask = 0755
|
|
||||||
valid users = paul
|
|
||||||
|
|
||||||
# Un-comment the following and create the netlogon directory for Domain Logons
|
# Un-comment the following and create the netlogon directory for Domain Logons
|
||||||
# (you need to configure Samba to act as a domain controller too.)
|
# (you need to configure Samba to act as a domain controller too.)
|
||||||
;[netlogon]
|
;[netlogon]
|
||||||
|
|
|
@ -189,15 +189,12 @@
|
||||||
force_apt_get: yes
|
force_apt_get: yes
|
||||||
update_cache: yes
|
update_cache: yes
|
||||||
|
|
||||||
- name: Create samba dirs
|
- name: Create samba dir
|
||||||
file:
|
file:
|
||||||
path: "/mammoth/tmp/{{ item }}"
|
path: /mammoth/tmp/pew-photos
|
||||||
state: directory
|
state: directory
|
||||||
owner: paul
|
owner: paul
|
||||||
group: paul
|
group: paul
|
||||||
loop:
|
|
||||||
- pew-unorganized-photos
|
|
||||||
- pew-organized-photos
|
|
||||||
notify: Restart smbd
|
notify: Restart smbd
|
||||||
|
|
||||||
- name: Configure samba
|
- name: Configure samba
|
||||||
|
@ -218,10 +215,14 @@
|
||||||
mode: '0644'
|
mode: '0644'
|
||||||
notify: Restart zfs-zed
|
notify: Restart zfs-zed
|
||||||
|
|
||||||
- name: Install weekly ZFS cron job
|
- name: ZFS cronjob - Sunday
|
||||||
cron:
|
cron:
|
||||||
name: 'Weekly zfs pool status check'
|
name: 'Weekly zfs pool status check'
|
||||||
special_time: weekly
|
minute: '0'
|
||||||
|
hour: '0'
|
||||||
|
day: '*'
|
||||||
|
month: '*'
|
||||||
|
weekday: '0'
|
||||||
job: '/usr/sbin/zpool status | mail -s "ZFS STATUS" paul@bigcavemaps.com'
|
job: '/usr/sbin/zpool status | mail -s "ZFS STATUS" paul@bigcavemaps.com'
|
||||||
user: paul
|
user: paul
|
||||||
|
|
||||||
|
@ -247,5 +248,20 @@
|
||||||
day: '*'
|
day: '*'
|
||||||
month: '*'
|
month: '*'
|
||||||
weekday: '1'
|
weekday: '1'
|
||||||
user: paul
|
|
||||||
job: "/home/paul/scripts-private/{{ hostname_short }}/backup.sh"
|
job: "/home/paul/scripts-private/{{ hostname_short }}/backup.sh"
|
||||||
|
user: paul
|
||||||
|
|
||||||
|
- name: Mastodon cronjobs - Sunday
|
||||||
|
cron:
|
||||||
|
name: "mastodon {{ item }} remove"
|
||||||
|
minute: '0'
|
||||||
|
hour: '0'
|
||||||
|
day: '*'
|
||||||
|
month: '*'
|
||||||
|
weekday: '0'
|
||||||
|
job: "/usr/bin/docker exec mastodon-web tootctl {{ item }} remove"
|
||||||
|
user: paul
|
||||||
|
loop:
|
||||||
|
- media
|
||||||
|
- preview_cards
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue