lech ansible

master
Paul Walko 2023-09-07 14:19:08 -06:00
parent 90aec2b881
commit 3109e6961c
2 changed files with 27 additions and 21 deletions

View File

@ -169,26 +169,16 @@ interfaces = 64.112.38.10/30 eno1
#======================= Share Definitions =======================
[pew-organized-photos]
comment = pew's organized photos
[pew-photos]
comment = pew's photos
browseable = yes
path = /mammoth/tmp/pew-organized-photos
path = /mammoth/tmp/pew-photos
guest ok = no
read only = yes
create mask = 0644
directory mask = 0755
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
# (you need to configure Samba to act as a domain controller too.)
;[netlogon]

View File

@ -189,15 +189,12 @@
force_apt_get: yes
update_cache: yes
- name: Create samba dirs
- name: Create samba dir
file:
path: "/mammoth/tmp/{{ item }}"
path: /mammoth/tmp/pew-photos
state: directory
owner: paul
group: paul
loop:
- pew-unorganized-photos
- pew-organized-photos
notify: Restart smbd
- name: Configure samba
@ -218,10 +215,14 @@
mode: '0644'
notify: Restart zfs-zed
- name: Install weekly ZFS cron job
- name: ZFS cronjob - Sunday
cron:
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'
user: paul
@ -247,5 +248,20 @@
day: '*'
month: '*'
weekday: '1'
user: paul
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