Commit 6a258b6 removed non-root-user-download/runtest.yml

1 file Authored and Committed by bgoncalv 2 years ago
removed non-root-user-download/runtest.yml

    
 1 @@ -1,64 +0,0 @@
 2 - - hosts: '{{ hosts | default("localhost") }}'
 3 -   vars:
 4 -     package: "curl"
 5 -   tasks:
 6 -     - name: "Set Content variables"
 7 -       set_fact:
 8 -         content: "a276e06d244e04b765f0a35532d9036ad84f340b0bdcc32e0233a8fbc31d5bed"
 9 -         password: "pAssw0rd"
10 -         crypt_password: "$6$/5GE87XLYLLfB3qx$w84Kct34UZG/4buTSXWkaaVIsw2xGXSAdmnS2QYdG8TtRgTsBnHdFdSkhoy.tKIE6A6LKlxczIZjQbpB19k7B1"
11 -     - name: "Create user curltester"
12 -       user: 
13 -         name: "curltester"
14 -         password: "{{ crypt_password }}"
15 -     - name: "Copy testfile"
16 -       copy:
17 -           dest: "/home/curltester/testfile"
18 -           content: "{{ content }}"
19 -     - block:
20 -       - name: "http download"
21 -         command: "curl https://archives.fedoraproject.org/pub/archive/fedora/linux/releases/18/Live/x86_64/Fedora-18-x86_64-Live-CHECKSUM"
22 -         args:
23 -             warn: false
24 -         register: http
25 -         become: yes
26 -         become_user: curltester
27 -       - name: "Compare http output"
28 -         fail:
29 -             msg: "{{ content }} not in {{ http.stdout }}"
30 -         when: content not in http.stdout
31 -       - name: "ftp download"
32 -         command: "curl ftp://ftp.scientificlinux.org/linux/fedora/releases/18/Live/x86_64/Fedora-18-x86_64-Live-CHECKSUM"
33 -         args:
34 -             warn: false
35 -         register: ftp
36 -         become: yes
37 -         become_user: curltester
38 -       - name: "Compare ftp output"
39 -         fail:
40 -             msg: "{{ content }} not in {{ ftp.stdout }}"
41 -         when: content not in ftp.stdout
42 -       - name: "scp download"
43 -         command: "curl -u curltester:{{ password }} --insecure scp://localhost/home/curltester/testfile"
44 -         args:
45 -             warn: false
46 -         register: scp
47 -       - name: "Compare scp output"
48 -         fail:
49 -             msg: "{{ content }} not in {{ scp.stdout }}"
50 -         when: content not in scp.stdout
51 -       - name: "sftp download"
52 -         command: "curl -u curltester:{{ password }} --insecure sftp://localhost/home/curltester/testfile"
53 -         args:
54 -             warn: false
55 -         register: sftp
56 -       - name: "Compare sftp output"
57 -         fail:
58 -             msg: "{{ content }} not in {{ sftp.stdout }}"
59 -         when: content not in sftp.stdout
60 -       always:
61 -       - name: "Remove user curltester"
62 -         user: 
63 -             name: "curltester"
64 -             remove: yes
65 -             state: absent