Skip to content
This repository was archived by the owner on Mar 7, 2025. It is now read-only.

Commit 6ff0765

Browse files
committed
Git: Updated git clone repo addresses
- Other misc git clone related tasks.
1 parent 6217bfb commit 6ff0765

File tree

14 files changed

+47
-24
lines changed

14 files changed

+47
-24
lines changed

roles/aliases/tasks/main.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,9 @@
1515

1616
- name: Clone aliases
1717
git:
18-
repo: https://github.com/Cloudbox/aliases
18+
repo: https://github.com/Cloudbox/aliases.git
1919
dest: /opt/aliases
20+
clone: yes
2021
version: HEAD
2122
force: yes
2223
become: yes

roles/cloudplow/tasks/main.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,14 +31,15 @@
3131
when: cloudplow_service.stat.exists
3232

3333
- name: Create cloudplow directories
34-
file: "path={{ item }} state=directory mode=0775 owner={{ user.name }} group={{ user.name }} recurse=yes"
34+
file: "path={{ item }} state=directory owner={{ user.name }} group={{ user.name }} mode=0775 recurse=yes"
3535
with_items:
3636
- /opt/cloudplow
3737

3838
- name: Clone cloudplow
3939
git:
40-
repo: https://github.com/l3uddz/cloudplow/
40+
repo: https://github.com/l3uddz/cloudplow.git
4141
dest: /opt/cloudplow
42+
clone: yes
4243
version: HEAD
4344
force: yes
4445
become: yes

roles/iperf3/tasks/main.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,10 @@
1313

1414
- name: "Clone iperf3 repo"
1515
git:
16-
repo: "https://github.com/esnet/iperf/"
16+
repo: "https://github.com/esnet/iperf.git"
1717
dest: "/var/tmp/iperf3"
18+
clone: yes
19+
version: HEAD
1820
force: yes
1921
register: diff
2022

roles/motd/tasks/main.yml

Lines changed: 14 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,11 @@
3333
- /etc/motd
3434
- /etc/motd.dynamic
3535

36+
- name: Create motd directories
37+
file: "path={{ item }} state=directory owner={{ user.name }} group={{ user.name }} mode=0775 recurse=yes"
38+
with_items:
39+
- /opt/motd
40+
3641
- name: Check if MOTD news service
3742
stat:
3843
path: "/etc/default/motd-news"
@@ -58,8 +63,11 @@
5863
git:
5964
repo: https://github.com/cloudbox/motd.git
6065
dest: /opt/motd
66+
clone: yes
6167
version: HEAD
6268
force: yes
69+
become: yes
70+
become_user: "{{ user.name }}"
6371

6472
- name: Install pip requirements
6573
pip:
@@ -75,7 +83,10 @@
7583
template:
7684
src: config.json.j2
7785
dest: /opt/motd/config.json
78-
force: yes
86+
owner: "{{ user.name }}"
87+
group: "{{ user.name }}"
88+
mode: 0775
89+
force: no
7990
when: (not motd_config.stat.exists)
8091

8192
- name: Touch '/opt/motd/activity.log' file
@@ -89,14 +100,13 @@
89100
- name: Set 'cloudbox-motd.py' as executable
90101
file:
91102
path: /opt/motd/cloudbox-motd.py
103+
owner: "{{ user.name }}"
104+
group: "{{ user.name }}"
92105
mode: a+x
93106

94107
- name: Import dynamic motd files
95108
copy: "src=/opt/motd/motd/ dest=/etc/update-motd.d/ force=yes mode=0775"
96109

97-
- name: Set directory permissions
98-
file: "path=/opt/motd state=directory owner={{ user.name }} group={{ user.name }} recurse=yes"
99-
100110
- name: Create symlink to dynamic motd
101111
file:
102112
src: /var/run/motd

roles/nethogs/tasks/main.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,10 @@
2020

2121
- name: Pull nethogs repo from github
2222
git:
23-
repo: "https://github.com/raboof/nethogs"
23+
repo: "https://github.com/raboof/nethogs.git"
2424
dest: "/var/tmp/nethogs"
2525
clone: yes
26+
version: HEAD
2627
force: yes
2728
register: diff
2829

roles/nzbget/tasks/subtasks/scripts.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,10 @@
3131

3232
- name: Scripts | Download unzip.py script
3333
git:
34-
repo: "https://github.com/Prinz23/nzbgetpp"
34+
repo: "https://github.com/Prinz23/nzbgetpp.git"
3535
dest: "/opt/scripts/nzbget/nzbgetpp/"
36+
clone: yes
37+
version: HEAD
3638
force: yes
3739
become: yes
3840
become_user: "{{ user.name }}"

roles/plex_autoscan/tasks/main.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,9 @@
3838

3939
- name: Clone plex_autoscan
4040
git:
41-
repo: https://github.com/l3uddz/plex_autoscan/
41+
repo: https://github.com/l3uddz/plex_autoscan.git
4242
dest: /opt/plex_autoscan
43+
clone: yes
4344
version: HEAD
4445
force: yes
4546
become: yes

roles/plex_dupefinder/tasks/main.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,13 @@
1515

1616
- name: Clone plex_dupefinder
1717
git:
18-
repo: https://github.com/l3uddz/plex_dupefinder/
18+
repo: https://github.com/l3uddz/plex_dupefinder.git
1919
dest: /opt/plex_dupefinder
20+
clone: yes
2021
version: HEAD
2122
force: yes
23+
become: yes
24+
become_user: "{{ user.name }}"
2225

2326
- name: Install pip requirements
2427
pip:
@@ -42,7 +45,7 @@
4245
owner: "{{ user.name }}"
4346
group: "{{ user.name }}"
4447
mode: 0775
45-
force: yes
48+
force: no
4649
when: not plex_dupefinder_config.stat.exists
4750

4851
- name: Set plexdupes.py as executable
@@ -52,9 +55,6 @@
5255
group: "{{ user.name }}"
5356
mode: a+x
5457

55-
- name: Set directory permissions
56-
file: "path=/opt/plex_dupefinder state=directory owner={{ user.name }} group={{ user.name }} recurse=yes"
57-
5858
- name: "Create /usr/local/bin symlink"
5959
file:
6060
src: "/opt/plex_dupefinder/plexdupes.py"

roles/python-plexlibrary/tasks/main.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515

1616
- name: Clone python-plexlibrary
1717
git:
18-
repo: "https://github.com/adamgot/python-plexlibrary/"
18+
repo: "https://github.com/adamgot/python-plexlibrary.git"
1919
dest: "/opt/python-plexlibrary"
2020
version: master
2121
force: yes

roles/shell/tasks/zsh.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@
1515
git:
1616
repo: https://github.com/robbyrussell/oh-my-zsh.git
1717
dest: "/home/{{ user.name }}/.oh-my-zsh"
18+
clone: yes
19+
version: HEAD
1820
force: yes
1921
become: yes
2022
become_user: "{{ user.name }}"

0 commit comments

Comments
 (0)