Skip to content

Commit

Permalink
problemas resolvidos
Browse files Browse the repository at this point in the history
  • Loading branch information
thiagogomesverissimo committed Sep 8, 2022
1 parent 4021cd7 commit c05c07c
Show file tree
Hide file tree
Showing 4 changed files with 29 additions and 25 deletions.
2 changes: 1 addition & 1 deletion tasks/conky.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

- name: Copy .conkyrc
template:
src: templates/conkyrc
src: conkyrc
dest: /etc/skel/.conkyrc
mode: '0755'

Expand Down
22 changes: 22 additions & 0 deletions tasks/home.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
# Apparently, pam_mkhomedir uses the permission of /etc/skel to
# set the permissions of the newly-created home directory
- name: set /etc/skel permissions to 0700
file:
mode: 0700
path: "/etc/skel"

# waiting fix regex https://github.com/fflch/proaluno/pull/57
# As why not set this in login.defs too?
- name: set home directory umask in /etc/login.defs
lineinfile:
path: /etc/login.defs
line: UMASK 077
state: present
regexp: '^\s*UMASK\s*[0-9]*'

# Teoricamente não é necessário com as alterações acima
- name: workaround - pam_mkhomedir.so umask=0077 não está rolando
cron:
name: "fix permissions"
minute: "*/5"
job: "chmod -R 0700 /home/*"
29 changes: 5 additions & 24 deletions tasks/main.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
---
# tasks file for local.proaluno
- name: copy source.list
- name: copy source.list.j2
template:
src: "templates/sources.list.j2"
src: "sources.list.j2"
dest: "/etc/apt/sources.list"

- name: update
Expand Down Expand Up @@ -34,25 +34,6 @@
- import_tasks: update_keys.yml
when: proaluno_update_keys

# Apparently, pam_mkhomedir uses the permission of /etc/skel to
# set the permissions of the newly-created home directory
- name: set /etc/skel permissions to 0700
file:
mode: 0700
path: "/etc/skel"

# waiting fix regex https://github.com/fflch/proaluno/pull/57
# As why not set this in login.defs too?
- name: set home directory umask in /etc/login.defs
lineinfile:
path: /etc/login.defs
line: UMASK 077
state: present
regexp: '^\s*UMASK\s*[0-9]*'

# Teoricamente não é necessário com as alterações acima
#- name: workaround - pam_mkhomedir.so umask=0077 não está rolando
# cron:
# name: "fix permissions"
# minute: "*/5"
# job: "chmod -R 0700 /home/*"
- import_tasks: home.yml


1 change: 1 addition & 0 deletions tasks/printers.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@
- K7600_processado_gstopdf17.ppd

#### remover impressoras antes de instalar a nova
# Comando para fazer a remoção na mão:
# for i in $(lpstat -p | awk '{print $2}'); do lpadmin -x $i; done
- name: getting installed printers
shell: lpstat -p | awk '{print $2}'
Expand Down

0 comments on commit c05c07c

Please sign in to comment.