state: directory
owner: agentdvr
group: agentdvr
- mode: u=rwx,g=rwx,o=rx
+ mode: u=rwx,g=rwxs,o=rx
#+END_SRC
** Authorize User ~agentdvr~
#+CAPTION: [[file:roles_t/abbey-dvr/tasks/main.yml][=roles_t/abbey-dvr/tasks/main.yml=]]
#+BEGIN_SRC conf :tangle roles_t/abbey-dvr/tasks/main.yml
-- name: Authorized agentdvr.
+- name: Authorize agentdvr.
copy:
content: |
ALL ALL=(agentdvr) NOPASSWD: /bin/systemctl,/bin/apt-get,\
path: /DVR/AgentDVR
owner: agentdvr
group: agentdvr
- mode: u=rwx,g=rwx,o=
+ mode: u=rwx,g=rxs,o=
- name: Create /DVR/AgentDVR/video/.
become: yes
path: /DVR/AgentDVR/video
owner: agentdvr
group: agentdvr
- mode: u=rwx,g=rx,o=
+ mode: u=rwx,g=rxs,o=
#+END_SRC
** Configure IP Cameras
state: directory
owner: agentdvr
group: agentdvr
- mode: u=rwx,g=rwx,o=rx
+ mode: u=rwx,g=rwxs,o=rx
-- name: Authorized agentdvr.
+- name: Authorize agentdvr.
copy:
content: |
ALL ALL=(agentdvr) NOPASSWD: /bin/systemctl,/bin/apt-get,\
path: /DVR/AgentDVR
owner: agentdvr
group: agentdvr
- mode: u=rwx,g=rwx,o=
+ mode: u=rwx,g=rxs,o=
- name: Create /DVR/AgentDVR/video/.
become: yes
path: /DVR/AgentDVR/video
owner: agentdvr
group: agentdvr
- mode: u=rwx,g=rx,o=
+ mode: u=rwx,g=rxs,o=