26225. EPMO Open Source Coordination Office Redaction File Detail Report

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.

26225.1 Files compared

# Location File Last Modified
1 MCCF_EDI_TAS_Infrastructure.zip\MCCF_EDI_TAS_Infrastructure\mag_sys_build\testing-playbooks inactive_user.yml Tue Mar 27 23:51:12 2018 UTC
2 MCCF_EDI_TAS_Infrastructure.zip\MCCF_EDI_TAS_Infrastructure\mag_sys_build\testing-playbooks inactive_user.yml Tue May 8 03:19:28 2018 UTC

26225.2 Comparison summary

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

26225.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

26225.4 Active regular expressions

No regular expressions were active.

26225.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: t esting
  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       regist er: inacti ve_users
  15  
  16   #  - name:  List Inac tive Users
  17   #    debug :
  18   #      msg : "An inac tive user:  {{ item } }"
  19   #    with_ items:
  20   #      - " {{ inactiv e_users.st dout_lines  }}" 
  21  
  22     - name:  Lock Inact ive User's  Account
  23       shell:  "passwd - l {{ item  }}"
  24       with_i tems:
  25         - "{ { inactive _users.std out_lines  }}" 
  26  
  27   #  - name:  Get the L ocked User 's info
  28   #    shell : "passwd  -S {{ item  }}"
  29   #    with_ items:
  30   #      - " {{ inactiv e_users.st dout_lines  }}" 
  31   #    regis ter: inact ive_result
  32   #
  33   #  - name:  List the  locked use r
  34   #    debug :
  35   #      msg : "{{ inac tive_resul t.results. 0.stdout } }"