Produced by Araxis Merge on 5/14/2018 1:18:39 PM Eastern Daylight Time. See www.araxis.com for information about Merge. This report uses XHTML and CSS2, and is best viewed with a modern standards-compliant browser. For optimum results when printing this report, use landscape orientation and enable printing of background images and colours in your browser.
| # | Location | File | Last Modified |
|---|---|---|---|
| 1 | MCCF_EDI_TAS_Infrastructure.zip\MCCF_EDI_TAS_Infrastructure\mag_sys_build\testing-playbooks | file_shadow.yml | Tue Mar 27 23:51:12 2018 UTC |
| 2 | MCCF_EDI_TAS_Infrastructure.zip\MCCF_EDI_TAS_Infrastructure\mag_sys_build\testing-playbooks | file_shadow.yml | Tue May 8 03:19:27 2018 UTC |
| Description | Between Files 1 and 2 |
|
|---|---|---|
| Text Blocks | Lines | |
| Unchanged | 2 | 106 |
| Changed | 1 | 2 |
| Inserted | 0 | 0 |
| Removed | 0 | 0 |
| Whitespace | |
|---|---|
| Character case | Differences in character case are significant |
| Line endings | Differences in line endings (CR and LF characters) are ignored |
| CR/LF characters | Not shown in the comparison detail |
No regular expressions were active.
| 1 | # Ansible Playbook | |
| 2 | # David Ho lton - Hal faker. PII 21 Nov 201 7 | |
| 3 | # | |
| 4 | # Verify S hadow file exists | |
| 5 | ||
| 6 | --- | |
| 7 | - name: Ve rify Shado w file exi sts | |
| 8 | hosts: r hel7 | |
| 9 | become: yes | |
| 10 | tasks: | |
| 11 | - name: Shadow Fil e | |
| 12 | stat: | |
| 13 | path : /etc/sha dow | |
| 14 | regist er: shdwfi le | |
| 15 | ||
| 16 | - fail: | |
| 17 | msg: "The shad ow file IS MISSING." | |
| 18 | when: shdwfile.s tat.exists == False | |
| 19 | ||
| 20 | - debug: | |
| 21 | msg: "The shad owfile {{ shdwfile.s tat.path } } exists." | |
| 22 | when: shdwfile.s tat.exists == True | |
| 23 | ||
| 24 | # Verify s ervice acc ounts do n ot have pa sswords. | |
| 25 | ||
| 26 | - name: Ve rify servi ce account do not ha ve passwor ds | |
| 27 | hosts: r hel7 | |
| 28 | become: yes | |
| 29 | tasks: | |
| 30 | - script : ../files /testscrip t.sh | |
| 31 | ||
| 32 | ||
| 33 | ||
| 34 | # - name: Gather Se rvice Acct Names | |
| 35 | # shell : "awk -F: '($3 >= 0 && $3 <= 999) { pri nt $1 }' / etc/passwd " | |
| 36 | # regis ter: SrvcA ccts | |
| 37 | # | |
| 38 | # - name: List Serv ice Accoun ts from /e tc/passwd | |
| 39 | # debug : | |
| 40 | # msg : "Service account: {{ item }} " | |
| 41 | # with_ items: | |
| 42 | # - " {{ SrvcAcc ts.stdout_ lines }}" | |
| 43 | # | |
| 44 | # - name: Gather Se rvice Acco unts from /etc/shado w | |
| 45 | # shell : "grep \b {{ item }} /etc/shad ow | awk - F: '$2 !~ /^[!*]/ {p rint $1, $ 2}'" | |
| 46 | # regis ter: BadSr vcAccts | |
| 47 | # with_ items: | |
| 48 | # - " {{ SrvcAcc ts.stdout_ lines }}" | |
| 49 | # | |
| 50 | # - name: List Serv ice Accoun ts from /e tc/shadow | |
| 51 | # fail: | |
| 52 | # msg : "BAD Ser vice Accou nts: {{ it em.stdout }}" | |
| 53 | # with_ items: "{{ BadSrvcAc cts.result s }}" | |
| 54 | # when: item.stdo ut != "" |
Araxis Merge (but not the data content of this report) is Copyright © 1993-2016 Araxis Ltd (www.araxis.com). All rights reserved.