Parcourir la source

tar used in place of unarchive module

Laurent Arnoud il y a 9 ans
Parent
révision
a09e2e71c1

+ 3
- 2
roles/common/tasks/google_auth.yml Voir le fichier

@@ -15,8 +15,9 @@
15 15
            dest=/root/libpam-google-authenticator-{{ google_auth_version }}-source.tar.bz2
16 16
 
17 17
 - name: Extract Google authenticator
18
-  command: tar xjf libpam-google-authenticator-{{ google_auth_version }}-source.tar.bz2
19
-           chdir=/root creates=/root/libpam-google-authenticator-{{ google_auth_version }}
18
+  unarchive: src=/root/libpam-google-authenticator-{{ google_auth_version }}-source.tar.bz2
19
+             creates=/root/libpam-google-authenticator-{{ google_auth_version }}
20
+             dest=/root copy=no
20 21
 
21 22
 - name: Install Google authenticator
22 23
   command: make install

+ 3
- 3
roles/git/tasks/cgit.yml Voir le fichier

@@ -19,9 +19,9 @@
19 19
            dest=/root/cgit-{{ cgit_version }}.tar.xz
20 20
 
21 21
 - name: Decompress cgit source
22
-  command: tar xvfJ /root/cgit-{{ cgit_version }}.tar.xz
23
-           chdir=/root
24
-           creates=/root/cgit-{{ cgit_version }}/configure
22
+  unarchive: src=/root/cgit-{{ cgit_version }}.tar.xz
23
+             dest=/root copy=no
24
+             creates=/root/cgit-{{ cgit_version }}/configure
25 25
 
26 26
 - name: Build and install cgit
27 27
   shell: make get-git ; make ; make install

+ 3
- 1
roles/ircbouncer/tasks/znc.yml Voir le fichier

@@ -22,7 +22,9 @@
22 22
   get_url: url=http://znc.in/releases/archive/znc-{{ znc_version }}.tar.gz dest=/root/znc-{{ znc_version }}.tar.gz
23 23
 
24 24
 - name: Decompress znc source
25
-  command: tar xzf /root/znc-{{ znc_version }}.tar.gz chdir=/root creates=/root/znc-{{ znc_version }}/configure
25
+  unarchive: src=/root/znc-{{ znc_version }}.tar.gz
26
+             dest=/root copy=no
27
+             creates=/root/znc-{{ znc_version }}/configure
26 28
 
27 29
 - name: Build and install znc
28 30
   shell: ./configure --enable-python && make && make install executable=/bin/bash chdir=/root/znc-{{ znc_version }} creates=/usr/local/bin/znc

+ 3
- 1
roles/mailserver/tasks/z-push.yml Voir le fichier

@@ -14,7 +14,9 @@
14 14
     dest=/root/z-push-{{ zpush_version }}.tar.gz
15 15
 
16 16
 - name: Decompress z-push source
17
-  command: tar xzf z-push-{{ zpush_version }}.tar.gz chdir=/root creates=/root/z-push-{{ zpush_version }}
17
+  unarchive: src=/root/z-push-{{ zpush_version }}.tar.gz
18
+             dest=/root copy=no
19
+             creates=/root/z-push-{{ zpush_version }}
18 20
 
19 21
 - name: Create /usr/share/z-push
20 22
   file: state=directory path=/usr/share/z-push

+ 6
- 4
roles/monitoring/tasks/collectd.yml Voir le fichier

@@ -29,8 +29,9 @@
29 29
            dest=/root/collectd-{{collectd_version}}.tar.gz
30 30
 
31 31
 - name: Extract collectd
32
-  command: tar xzf collectd-{{collectd_version}}.tar.gz
33
-           chdir=/root creates=/root/collectd-{{collectd_version}}
32
+  unarchive: src=/root/collectd-{{collectd_version}}.tar.gz
33
+             dest=/root copy=no
34
+             creates=/root/collectd-{{collectd_version}}
34 35
 
35 36
 - name: Build and install collectd
36 37
   shell: ./configure ; make all ; make install
@@ -47,8 +48,9 @@
47 48
   when: collectd_librato_email|length > 0
48 49
 
49 50
 - name: Extract collectd-librato plugin
50
-  command: tar xzf collectd-librato-{{collectd_librato_version}}.tar.gz
51
-           chdir=/root creates=/root/collectd-librato-{{collectd_librato_version}}
51
+  unarchive: src=/root/collectd-librato-{{collectd_librato_version}}.tar.gz
52
+             dest=/root copy=no
53
+             creates=/root/collectd-librato-{{collectd_librato_version}}
52 54
   when: collectd_librato_email|length > 0
53 55
 
54 56
 - name: Install collectd-librato plugin

+ 3
- 1
roles/tarsnap/tasks/tarsnap.yml Voir le fichier

@@ -57,7 +57,9 @@
57 57
 
58 58
 - name: Decompress Tarsnap source
59 59
   when: tarnsap_installed|failed
60
-  command: tar xzf /root/tarsnap-autoconf-{{ tarsnap_version }}.tgz chdir=/root creates=/root/tarsnap-autoconf-{{ tarsnap_version }}/COPYING
60
+  unarchive: src=/root/tarsnap-autoconf-{{ tarsnap_version }}.tgz
61
+             dest=/root copy=no
62
+             creates=/root/tarsnap-autoconf-{{ tarsnap_version }}/COPYING
61 63
 
62 64
 - name: Configure Tarsnap for local build
63 65
   when: tarnsap_installed|failed

+ 3
- 1
roles/webmail/tasks/roundcube.yml Voir le fichier

@@ -42,7 +42,9 @@
42 42
     dest=/root/carddav_{{ carddav_version }}.tar.gz
43 43
 
44 44
 - name: Decompress carddav plugin source
45
-  command: tar xzf carddav_{{ carddav_version }}.tar.gz chdir=/root creates=/root/rcmcarddav-carddav_{{ carddav_version }}
45
+  unarchive: src=/root/carddav_{{ carddav_version }}.tar.gz
46
+             dest=/root copy=no
47
+             creates=/root/rcmcarddav-carddav_{{ carddav_version }}
46 48
 
47 49
 - name: Move carddav plugin files to /usr/share/roundcube/plugins/carddav
48 50
   command: mv rcmcarddav-carddav_{{ carddav_version }} /usr/share/roundcube/plugins/carddav chdir=/root creates=/usr/share/roundcube/plugins/carddav

Chargement…
Annuler
Enregistrer