26193. EPMO Open Source Coordination Office Redaction File Detail Report

Produced by Araxis Merge on 5/14/2018 1:18:38 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.

26193.1 Files compared

# Location File Last Modified
1 MCCF_EDI_TAS_Infrastructure.zip\MCCF_EDI_TAS_Infrastructure\mag_sys_build\playbooks inactive_user.yml Tue Mar 27 23:51:06 2018 UTC
2 MCCF_EDI_TAS_Infrastructure.zip\MCCF_EDI_TAS_Infrastructure\mag_sys_build\playbooks inactive_user.yml Tue May 8 03:18:53 2018 UTC

26193.2 Comparison summary

Description Between
Files 1 and 2
Text Blocks Lines
Unchanged 2 70
Changed 1 2
Inserted 0 0
Removed 0 0

26193.3 Comparison options

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

26193.4 Active regular expressions

No regular expressions were active.

26193.5 Comparison detail

  1   # Ansible  Playbook 
  2   # David Ho lton - Hal faker.  PII                     21 Nov 201 7
  3   #
  4   # Lock use r accounts  that have  not been  used in 90  days.
  5  
  6   ---
  7   - name: Lo ck Inactiv e User Acc ounts
  8     hosts: r hel7
  9     become:  yes
  10     tasks:
  11     - name:  Find inact ive users
  12       #shell : "awk -F:  '( $7 ~ \ "nologin\"  ) {print  $1}' /etc/ passwd"
  13       shell:  "lastlog  -b 90 -u 1 000- | awk  '($1 !~ / ^root$/ &&  $1 !~ /^U sername$/)  {print $1 }'"
  14       #shell : "lastlog  -b 90 -u  1000- | aw k '($1 !~  /^root$|^U sername$|^ v(a|ba|ha) .*$|^(i|o) it.*$|^cem placig0$|^ jenkin.*$/ ) {print $ 1}'"
  15       regist er: inacti ve_users
  16  
  17   #  - name:  List Inac tive Users
  18   #    debug :
  19   #      msg : "An inac tive user:  {{ item } }"
  20   #    with_ items:
  21   #      - " {{ inactiv e_users.st dout_lines  }}" 
  22  
  23     - name:  Lock Inact ive User's  Account
  24       shell:  "passwd - l {{ item  }}"
  25       with_i tems:
  26         - "{ { inactive _users.std out_lines  }}" 
  27  
  28   #  - name:  Get the L ocked User 's info
  29   #    shell : "passwd  -S {{ item  }}"
  30   #    with_ items:
  31   #      - " {{ inactiv e_users.st dout_lines  }}" 
  32   #    regis ter: inact ive_result
  33   #
  34   #  - name:  List the  locked use r
  35   #    debug :
  36   #      msg : "{{ inac tive_resul t.results. 0.stdout } }"