Remove unnecessary use of become
from some roles
This should make execution much faster
This commit is contained in:
@ -2,10 +2,8 @@
|
||||
service:
|
||||
name: nginx
|
||||
state: reloaded
|
||||
become: true
|
||||
|
||||
- name: restart qbittorrent
|
||||
service:
|
||||
name: qbittorrent-nox@{{ qbittorrent_user.name }}
|
||||
state: restarted
|
||||
become: true
|
||||
|
@ -3,5 +3,4 @@
|
||||
src: files/nginx.conf
|
||||
dest: /etc/nginx/http.d/downloads.conf
|
||||
mode: "0644"
|
||||
become: true
|
||||
notify: reload nginx
|
||||
|
@ -1,20 +1,17 @@
|
||||
- name: Install qbittorrent
|
||||
package:
|
||||
name: qbittorrent-nox
|
||||
become: true
|
||||
|
||||
- name: Create user
|
||||
user:
|
||||
name: qbittorrent
|
||||
system: true
|
||||
become: true
|
||||
register: qbittorrent_user
|
||||
|
||||
- name: Enable service
|
||||
service:
|
||||
name: qbittorrent-nox@{{ qbittorrent_user.name }}
|
||||
enabled: true
|
||||
become: true
|
||||
|
||||
- name: Set configuration
|
||||
ini_file:
|
||||
@ -42,5 +39,4 @@
|
||||
- {section: Preferences, option: Bittorrent\MaxConnecsPerTorrent, value: -1"}
|
||||
- {section: Preferences, option: Bittorrent\MaxUploads, value: -1"}
|
||||
- {section: Preferences, option: Bittorrent\MaxUploadsPerTorrent, value: -1"}
|
||||
become: true
|
||||
notify: restart qbittorrent
|
||||
|
Reference in New Issue
Block a user