Browse Source

Fix typo in tarsnap.yml

Florian Anderiasch 9 years ago
parent
commit
076b6d2452
1 changed files with 12 additions and 12 deletions
  1. 12
    12
      roles/tarsnap/tasks/tarsnap.yml

+ 12
- 12
roles/tarsnap/tasks/tarsnap.yml View File

1
 - name: Check if tarsnap {{ tarsnap_version }} is installed
1
 - name: Check if tarsnap {{ tarsnap_version }} is installed
2
   shell: tarsnap --version | grep {{ tarsnap_version }} --color=never
2
   shell: tarsnap --version | grep {{ tarsnap_version }} --color=never
3
-  register: tarnsap_installed
4
-  changed_when: "tarnsap_installed.stderr != ''"
3
+  register: tarsnap_installed
4
+  changed_when: "tarsnap_installed.stderr != ''"
5
   ignore_errors: yes
5
   ignore_errors: yes
6
   tags:
6
   tags:
7
     - dependencies
7
     - dependencies
8
 
8
 
9
 - name: Install dependencies for Tarsnap
9
 - name: Install dependencies for Tarsnap
10
-  when: tarnsap_installed|failed
10
+  when: tarsnap_installed|failed
11
   apt: pkg={{ item }} state=installed
11
   apt: pkg={{ item }} state=installed
12
   with_items:
12
   with_items:
13
     - e2fslibs-dev
13
     - e2fslibs-dev
17
     - dependencies
17
     - dependencies
18
 
18
 
19
 - name: Download the current tarsnap code signing key
19
 - name: Download the current tarsnap code signing key
20
-  when: tarnsap_installed|failed
20
+  when: tarsnap_installed|failed
21
   get_url:
21
   get_url:
22
     url=https://www.tarsnap.com/tarsnap-signing-key.asc
22
     url=https://www.tarsnap.com/tarsnap-signing-key.asc
23
     dest=/root/tarsnap-signing-key.asc
23
     dest=/root/tarsnap-signing-key.asc
24
 
24
 
25
 - name: Add the tarsnap code signing key to your list of keys
25
 - name: Add the tarsnap code signing key to your list of keys
26
-  when: tarnsap_installed|failed
26
+  when: tarsnap_installed|failed
27
   command:
27
   command:
28
     gpg --import tarsnap-signing-key.asc
28
     gpg --import tarsnap-signing-key.asc
29
     chdir=/root/
29
     chdir=/root/
30
 
30
 
31
 - name: Download tarsnap SHA file
31
 - name: Download tarsnap SHA file
32
-  when: tarnsap_installed|failed
32
+  when: tarsnap_installed|failed
33
   get_url:
33
   get_url:
34
     url="https://www.tarsnap.com/download/tarsnap-sigs-{{ tarsnap_version }}.asc"
34
     url="https://www.tarsnap.com/download/tarsnap-sigs-{{ tarsnap_version }}.asc"
35
     dest="/root/tarsnap-sigs-{{ tarsnap_version }}.asc"
35
     dest="/root/tarsnap-sigs-{{ tarsnap_version }}.asc"
36
 
36
 
37
 - name: Make the command that gets the current sha
37
 - name: Make the command that gets the current sha
38
-  when: tarnsap_installed|failed
38
+  when: tarsnap_installed|failed
39
   template:
39
   template:
40
     src=getSha.sh
40
     src=getSha.sh
41
     dest=/root/getSha.sh
41
     dest=/root/getSha.sh
42
     mode=0755
42
     mode=0755
43
 
43
 
44
 - name: get the SHA256sum for this tarsnap release
44
 - name: get the SHA256sum for this tarsnap release
45
-  when: tarnsap_installed|failed
45
+  when: tarsnap_installed|failed
46
   command:
46
   command:
47
     ./getSha.sh
47
     ./getSha.sh
48
     chdir=/root
48
     chdir=/root
49
   register: tarsnap_sha
49
   register: tarsnap_sha
50
 
50
 
51
 - name: Download Tarsnap source
51
 - name: Download Tarsnap source
52
-  when: tarnsap_installed|failed
52
+  when: tarsnap_installed|failed
53
   get_url:
53
   get_url:
54
     url="https://www.tarsnap.com/download/tarsnap-autoconf-{{ tarsnap_version }}.tgz"
54
     url="https://www.tarsnap.com/download/tarsnap-autoconf-{{ tarsnap_version }}.tgz"
55
     dest="/root/tarsnap-autoconf-{{ tarsnap_version }}.tgz"
55
     dest="/root/tarsnap-autoconf-{{ tarsnap_version }}.tgz"
56
     sha256sum={{ tarsnap_sha.stdout_lines[0] }}
56
     sha256sum={{ tarsnap_sha.stdout_lines[0] }}
57
 
57
 
58
 - name: Decompress Tarsnap source
58
 - name: Decompress Tarsnap source
59
-  when: tarnsap_installed|failed
59
+  when: tarsnap_installed|failed
60
   unarchive: src=/root/tarsnap-autoconf-{{ tarsnap_version }}.tgz
60
   unarchive: src=/root/tarsnap-autoconf-{{ tarsnap_version }}.tgz
61
              dest=/root copy=no
61
              dest=/root copy=no
62
              creates=/root/tarsnap-autoconf-{{ tarsnap_version }}/COPYING
62
              creates=/root/tarsnap-autoconf-{{ tarsnap_version }}/COPYING
63
 
63
 
64
 - name: Configure Tarsnap for local build
64
 - name: Configure Tarsnap for local build
65
-  when: tarnsap_installed|failed
65
+  when: tarsnap_installed|failed
66
   command: ./configure chdir=/root/tarsnap-autoconf-{{ tarsnap_version }} creates=/root/tarsnap-autoconf-{{ tarsnap_version }}/Makefile
66
   command: ./configure chdir=/root/tarsnap-autoconf-{{ tarsnap_version }} creates=/root/tarsnap-autoconf-{{ tarsnap_version }}/Makefile
67
 
67
 
68
 - name: Build and install Tarsnap
68
 - name: Build and install Tarsnap
69
-  when: tarnsap_installed|failed
69
+  when: tarsnap_installed|failed
70
   command: make all install clean chdir=/root/tarsnap-autoconf-{{ tarsnap_version }} creates=/usr/local/bin/tarsnap
70
   command: make all install clean chdir=/root/tarsnap-autoconf-{{ tarsnap_version }} creates=/usr/local/bin/tarsnap
71
 
71
 
72
 - name: Copy Tarsnap key file into place
72
 - name: Copy Tarsnap key file into place

Loading…
Cancel
Save