Sponsored Content
Full Discussion: Ansible Automation
Special Forums UNIX and Linux Applications Ansible Automation Post 302985438 by Vit0_Corleone on Wednesday 9th of November 2016 02:18:39 PM
Old 11-09-2016
Cool, pretty good playbook. I am implementing Ansible in our environment so lets keep posting our notes as someone might find it useful.
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Help in automation...

Hi All, I need to run the same command on many servers. I am using ssh for the same. Following is the script that I am using to fire the same command on multiple machines. #!/bin/bash # Linux/UNIX box with ssh key based login #SERVERS="iqmevrick,iqmango" # SSH User name USR="root" #... (1 Reply)
Discussion started by: nua7
1 Replies

2. Shell Programming and Scripting

Automation of UI using shellscript

Hi, I want to do automation on UI using shellscript. eg: 1) Drop down menu contains assign , investigate, closed. now there is one id want assign it using assign tab then need to investigate it and lastly close. Sometimes the id can't assign to perticular user. there are so many... (11 Replies)
Discussion started by: aish11
11 Replies

3. Shell Programming and Scripting

scp automation

hi there , i want to use the scp to transfer the file from one machine to another machine non-stop. i have put it in a .sh file. but everytime i run it and it prompts me to input password. pc3@pc3-desktop:~/Documents$ ./sample3.sh pc-main@192.168.1.117's password: screenshot.jpg ... (4 Replies)
Discussion started by: Ericyue
4 Replies

4. UNIX for Advanced & Expert Users

Need help in automation

Hi, I wanted to automate the scp command where i do not want to enter the password each time. So thought of using expect command. Script is executing without any issues but files are not copied to remote server. Can any one help me? Below is my shell script.. #!/bin/ksh ... (6 Replies)
Discussion started by: balasubramani04
6 Replies

5. Shell Programming and Scripting

automation using python

Im trying to write an automation script using python. I expect this script to log in to a remote server, execute commands and get its output. import pexpect child=pexpect.spawn('ssh myuser@192.168.151.80') child.expect('Password:') child.sendline('mypassword') get_output =... (4 Replies)
Discussion started by: Arun_Linux
4 Replies

6. Shell Programming and Scripting

Script Automation

Hi Gurus, I have a clearcase script that i use to check in a single file at time on my clearcase server. the script is as follows setmyview settask 75098_MSI_TRILOGY_EIM cd /vobs/Trilogy_R12/custom/msieim/12.0.0/sql/ cleartool co -nc . ct mkelem -nc Filename_1.sql cp... (3 Replies)
Discussion started by: r_t_1601
3 Replies

7. Shell Programming and Scripting

Small automation

Frequently we need to stop or start services on Linux systems. For exmaple : To start or stop vsftpd daemon # /etc/init.d/vsftpd start or # /etc/init.d/vsftpd stop Following script will check the vsftpd service and if it is running, it will be stopped or vice-versa. # cat... (5 Replies)
Discussion started by: snjksh
5 Replies

8. UNIX and Linux Applications

Passing variables from UNIX to Ansible to UNIX shell

I m passing a variable stringg from Unix shell which has value 'Good Day' to ansible and from ansible to a second shell script where it print only Good instead of 'Good Day' passing the variable stringg from unix shell script1.sh echo $stringg ansible-playbook install.yml -i... (1 Reply)
Discussion started by: mohtashims
1 Replies

9. Shell Programming and Scripting

Useradd with ansible

Hello, I need ansible playbook to create new user on remote server. Remote server blocked direct root login so I must login first application user and later I must run "useradd" command with sudo. I need playbook.yml and cli command. Best regards, (0 Replies)
Discussion started by: getrue
0 Replies

10. Linux

Ansible installation fails on standalone Oracle Linux

I have a standalone Oracle Linux server which has no connectivity to the internet. I was following a blog which directed me to download all ansible dependent setup files and install them using the below command. # yum localinstall -y python-crypto-2.6.1-1.el7.rf.x86_64.rpm... (7 Replies)
Discussion started by: mohtashims
7 Replies
snntpd,v0.3.8(8)					      System Manager's Manual						  snntpd,v0.3.8(8)

NAME
snntpd - small news server SYNOPSIS
snntpd [-t timeout] [-P] [-S] [logger...] DESCRIPTION
snntpd is a small news server. It needs to be run under inetd or tcpserver, as root or as the owner of /var/spool/sn. snntpd does not fork into the background. It expects to read and write from and to the network on descriptors 0 and 1. ARGUMENTS
logger... (usually /usr/bin/logger) is taken to be a logging program, and all log output is piped to it. If logger... is not specified, log messages are directed to descriptor 2. OPTIONS
-t timeout specifies how long snntpd should wait for input before it gives up and exits. timeout is in seconds and defaults to 600. -P snntpd includes it's pid in log output. -S Suppress NNTP greeting on startup. This is useful if you want to perform authentication before running snntpd, or want to provide your own greeting, from a wrapper. POSTING AND POSTING PERMISSIONS
Posts are usually handled externally by the /usr/sbin/SNPOST script, which is responsible for fine-grain posting control; handling of con- trol messages; and the ultimate distribution of the posted article. snntpd permits or denies posting in a very simple manner: If /var/spool/sn/.nopost exists, posting is not allowed. Otherwise, if the environment variable POSTING_OK is not set, posting is not allowed. Otherwise if POSTING_OK is set (to the empty string), posting is generally allowed, and all POSTed articles are piped to the SNPOST script, which has the final say in the matter. The value of $POSTING_OK is not currently used, but is reserved. FILES
/var/spool/sn/.fifo If this file exists, and is a fifo, snntpd will write the name of a newsgroup into it as that newsgroup becomes the current one. If the fifo does not exist snntpd will not create it. /var/spool/sn/.noservice If this file exists, snntpd will display its first line and exit. If the file can't be read or is empty, a default message is dis- played. This is useful for temporarily disabling the news server while you perform any maintenance. /var/spool/sn/.nopost See POSTING PERMISSIONS above. /var/spool/sn/.SNPOST If this script or program exists, it is invoked instead of SNPOST to accept a posted article. /var/spool/sn/news.group.name/.nopost These files really belong to SNPOST, and it is unfortunate that snntpd has to check for their existence to determine the posting flag for the LIST command. See /usr/sbin/SNPOST. /var/spool/sn/news.group.name/.info If this file exists, its first line is taken as the description of that group for use with the LIST NEWSGROUPS command. /var/spool/sn/news.group.name/.times is a binary file containing entry times, to support the NEWNEWS command. /var/spool/sn/news.group.name/.created is an empty file retained for it's timestamp, to support the NEWGROUPS command. SIGNALS
If snntpd catches SIGHUP, the files /var/spool/sn/{.fifo,.noservice,.nopost} (see below) are checked again, as they are during startup. Other signals have default behaviour. ENVIRONMENT VARIABLES
See also /usr/sbin/SNPOST for a list of environment variables exported by snntpd. PATH The PATH must be set such that snntpd can find SNPOST in order to accept postings. If PATH does not include /usr/sbin, /usr/sbin will be appended to it. POSTING_OK This variable helps determine the site-wide posting policy. See POSTING PERMISSIONS above. TCPREMOTEIP If this value is set, it is taken to be the dotted-quad IP address of the connecting client. If it is not set, snntpd attempts to derive it for itself, and then set its value. TCPLOCALIP as above, but for the server's dotted-quad IP. SNROOT If this is set and is not empty, the value is used everywhere in place of /var/spool/sn, the default news spool directory. SEE ALSO
snsend(8), /usr/sbin/SNPOST N.B. Harold Tay snntpd,v0.3.8(8)
All times are GMT -4. The time now is 02:40 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy