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\replaced-playbooks | dns_update.yml | Tue Mar 27 23:51:12 2018 UTC |
| 2 | MCCF_EDI_TAS_Infrastructure.zip\MCCF_EDI_TAS_Infrastructure\mag_sys_build\replaced-playbooks | dns_update.yml | Tue May 8 03:19:23 2018 UTC |
| Description | Between Files 1 and 2 |
|
|---|---|---|
| Text Blocks | Lines | |
| Unchanged | 2 | 116 |
| 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 | # # Erik v an Oudheus den PII - 11 Oct 2 017 | |
| 3 | # # | |
| 4 | # # DNS Up date | |
| 5 | ||
| 6 | --- | |
| 7 | - name: DN S Update S cript | |
| 8 | hosts: r hel7 | |
| 9 | become: yes | |
| 10 | tasks: | |
| 11 | - name: Create DNS update sc ript | |
| 12 | file: path=/home /ansible/. vimrc | |
| 13 | stat e=absent | |
| 14 | - name: create rdp _nsupdate | |
| 15 | copy: | |
| 16 | cont ent: "" | |
| 17 | dest : /etc/cro n.daily/rd p_nsupdate | |
| 18 | owne r: root | |
| 19 | grou p: root | |
| 20 | mode : 0755 | |
| 21 | - name: edit rdp_n supdate | |
| 22 | blocki nfile: | |
| 23 | path : /etc/cro n.daily/rd p_nsupdate | |
| 24 | mark er: "##Add ed for VA CRISP##" | |
| 25 | bloc k: | | |
| 26 | #! /bin/bash | |
| 27 | # rdp_n supdate v2 .0 | |
| 28 | # | |
| 29 | # This sc ript updat es the def ualt names server wi th the hos tname and ip address | |
| 30 | # includi ng reverse lookup. It support rhel 6 an d rhel 7. | |
| 31 | # 07-19-2013 : correct ed config file use. | |
| 32 | # 06/11/2014 : added f ull paths to ensure functional ity indepe ndant of e nvironment variables | |
| 33 | # 06/30/2014 : moved t mp and log files to /tmp/ and added logg ing to /va r/log/mess ages | |
| 34 | # 06/30/2014 : added 7 day purge in /tmp t o remove o lder tmp a nd log fil es | |
| 35 | # 12/08/2014 : added f ull path t o ifconfig line | |
| 36 | # 02/25/2015 : correct ed logging of ntpd s ync | |
| 37 | # 03/12/2017 : removed parametr and config file opti ons; now u ses ip fro m def rout e | |
| 38 | # 10/11/2017 : forked from conf ig channel on VA sat and remov ed ntp syn c | |
| 39 | # | |
| 40 | TM P_FILE=$(d ate +"/tmp /rdp_nsupd ate-%Y-%m% d-%H%M%S.t mp") | |
| 41 | LO G_FILE=$(d ate +"/tmp /rdp_nsupd ate-%Y-%m% d-%H%M%S.l og") | |
| 42 | ||
| 43 | IP ADDR=$(ip -4 route g et 1 | hea d -1 | awk '{ print $7}' | tr -d '\n') | |
| 44 | IF S="." read -ra INARP A <<< "$IP ADDR" | |
| 45 | ||
| 46 | ec ho update add ${HOST NAME} 8643 0 a ${IPAD DR} >$TMP_ FILE | |
| 47 | ec ho send >> $TMP_FILE | |
| 48 | ec ho update add ${INAR PA[3]}.${I NARPA[2]}. ${INARPA[1 ]}.${INARP A[0]}.in-a ddr.arpa 8 6430 ptr ${HOSTNA ME} >>$TMP _FILE | |
| 49 | ec ho send >> $TMP_FILE | |
| 50 | ||
| 51 | /u sr/bin/nsu pdate -v - d $TMP_FIL E >>$LOG_F ILE 2>&1 | |
| 52 | ||
| 53 | if [[ -x /bi n/logger ] ]; then | |
| 54 | /bin/logge r -i -t rd p_nsupdate -f $LOG_F ILE | |
| 55 | fi | |
| 56 | fi nd /tmp/rd p_nsupdate * -type f -mtime +7 -exec rm { } \; 2>/de v/null | |
| 57 | ||
| 58 | - name: Run It! | |
| 59 | shell: /etc/cron .daily/rdp _nsupdate |
Araxis Merge (but not the data content of this report) is Copyright © 1993-2016 Araxis Ltd (www.araxis.com). All rights reserved.