Questions tagged [automation]
the field of converting any manual process into one that can be run mostly, or entirely, "hands-free"
643
questions
1
vote
1
answer
4k
views
How to make custom partitioning of hdd via preseed?
According to official debian manual (https://www.debian.org/releases/stable/amd64/apbs04.html.en), i saw:
#d-i partman-auto/expert_recipe string \
# boot-root :: ...
0
votes
3
answers
502
views
how to get the version of mysql without running anything relate to mysql itself?
there are many ways to retrieve version of a mysql distribution, such as :
running a SQL statements in the server by:
select version();
or
show global variables like 'version';
mysqld --version
...
1
vote
2
answers
10k
views
How to run different role for different hosts in single ansible playbook?
I have 3 ansible playbook.
my_ansible
├── hosts
├── play1.yaml
├── play2.yaml
├── play3.yaml
└── roles
├── role1
├── role2
└── role3
hosts
[play1]
host1
[play2]
host2
[play3]
host3
...
6
votes
1
answer
3k
views
dpkg-reconfigure: dialog frontend sets up postfix successfully; non-interactive frontend fails
(N.B. In this question, a leading # indicates a root prompt, not a comment. Also, I have replaced the actual hostname with <myhostname>.)
As the debconf (7) man-page states, dpkg-reconfigure ...
0
votes
0
answers
170
views
vRealize Automation - Software Component bind variable of second nic IP
So i am having troubles with automating a deployment in vRA. I created a software component with 3 scripts and in one of the script i need to provide as a variable the Reserved/Alocated IP of the ...
3
votes
1
answer
506
views
Automated testing in virtual machines using Hyper-V [closed]
I was tasked to automate our department's testing process.
To do the testing I first have to install a setup of our application on the host system and run another application, the tester, afterwards.
...
-1
votes
1
answer
2k
views
Running an Ansible ping on a remote host fails
I've just getting started to study Ansible and how it can improves my job. With that said, I'm facing issues when I try to ping a host with Ansible (ansible all -m ping -vv). Ansible is installed on ...
3
votes
1
answer
814
views
How to tell (in Powershell) whether Install-ADDSForest is complete?
I have a powershell script that runs Install-ADDSForest to set up a lab environment. The script is actually run via VMware tools. During the Install-ADDSForest process, the Windows server (2012) will ...
0
votes
1
answer
194
views
Automatic Image Deploy from Network to Multiple Different Machines
We have multiple different "computers" that uses SD card like drives to store Windows. Those Windows are written to those cards with HDD Raw Copy.
Every couple of weeks we manually
Write ...
2
votes
1
answer
8k
views
jenkins - return something from child job
There is a jenkins pipeline job ("parent"). From it - on one stage there is called another pipeline job ("child" - using build job command).
Is there any way to return something (for example short ...
4
votes
3
answers
19k
views
How to automatically accept privacy agreement when installing VS2017 via the command line?
As part of managing environments, I want to install Visual Studio 2017 via the command line. However, I'm running into issues installing 2017 that wasn't encountered setting up 2015. Following the ...
0
votes
2
answers
2k
views
Configure a new macOS VPN from bash
I need to configure a new VPN configuration on dozens of macOS Siera 10.12.x machines. Obviously automating this is going to be a lot better than trying to get the users to follow the multi-step ...
0
votes
0
answers
26
views
How to capture tables with different structure from web
I have thousands of web pages(need login with username and passwords) like https://XXX.incometax.XXX/Preview/ViewDetail?TIN_INFO_NO=11935# where only last four digits(11935 for this example) changes ...
1
vote
2
answers
571
views
"duplicate" a running server
Instead of using Ansible or some other configuration management tool, after many months of being the admin of this ubuntu 16.04 server, I made a lot of changes to the system: changed config files in /...
0
votes
1
answer
97
views
Is there a way to try to run an ansible task, role, or play again on a different host if it failed?
I have two master/master LDAP servers and an Ansible play that creates a new LDAP user.
I would like for the play to run on the first LDAP server.
If the first host run is successful, skip running ...
0
votes
1
answer
63
views
Copy configuration between multiple RDC sessions
I have a requirement to configure 25 remote desktop sessions identically ready for users to connect and start using them.
The type of config that is needed is things like browsing to a site and ...
0
votes
1
answer
222
views
Nagios Core - Automation
We are using Nagios Core for monitoring devices and we are currently facing some hurdles with monitoring a large scale environment. It requires a lot of manual tasks such as collecting OID's and MIB's,...
0
votes
1
answer
38
views
WinSCP automatically configure runtime
I have a bastion/jump box providing WinSCP for users to carry out transfers to secured hosts. This is integrated into a privileged access management (PAM) service. I want to automate some behaviours ...
2
votes
2
answers
1k
views
Is there a standard way to update instance template in instance group?
AWS has service named CodeDeploy which can deploy code to Auto Scaling (AS) group. For e.g. if your AS policy got triggered and it spun a new instance (which will use predefined instance image called ...
2
votes
1
answer
3k
views
Disable Network connection in Windows PE
I am generating a WindowsPE boot stick with the Microsoft Automation Installation Kit 10 (host is Windows 10) for a amd64 target platform.
Because i dont need network connections from within the ...
1
vote
2
answers
1k
views
Move workstations from one OU to another
I have pieced together the below powershell script but when i run it on my DC i get the below error message.
My overall goal is to have the script pick up on any workstations within the Computers OU ...
0
votes
1
answer
61
views
Automated Shutdown through Batch File
so Im administering 100 desktop PCs at a local university in the pacific (dot in the map) and my boss has told me to write a script to carry out an automated shutdown of all computers at 10pm. I've ...
1
vote
1
answer
2k
views
AWS CloudFormation - Calling CLI from Init can't get credentials
I'm using a CloudFormation template to boot up a custom windows AMI, which needs to retrieve some code from an S3 bucket and execute it, once it boots up.
After quickly being able to do it manually ...
1
vote
1
answer
494
views
EC2 instance cross-reference within a CloudFormation template
I'm in a bit of a pickle here. I have a specific application (one that I cannot modify) which I need to automatically deploy on 3 AWS EC2 instances using CloudFormation, and I need all 3 of them to be ...
0
votes
2
answers
2k
views
Allow ssh access on single Ethernet port
I'm the guy who ask over complicated question and don't see the simple answer.
To explain quickly, I have a bunch of server (on debian 9) with 2 physical network interface, a front-end (for the app ...
4
votes
1
answer
104
views
Imaging mac fully remote keyboard free?
How can I image a mac remotely over the network with no access to the machine (no keyboard)?
UPDATE: We may be having issues with the reboot process after selecting a network boot disk, see edit ...
0
votes
1
answer
56
views
Azure Auto Scale - Last minute alone rule?
How can I create a rule that would trigger when the CPU % for the LAST minute is bigger than 90%?
2
votes
2
answers
4k
views
Auto login Azure VM
I've some processes I want to automate using an Azure VM. I want to automatically start it up, run something, then shut it down and deprovision it until the next scheduled startup.
I can start ...
5
votes
5
answers
12k
views
Selenium ChromeDriver makes blank screenshots
In jenkins taken screenshots are blank or invalid like in example here:
Maybe someone knows what kind problem could be with it?
Locally everything works fine
WebDriver.ChromeDriver.win32 version - 2....
12
votes
2
answers
11k
views
Limit SSH key to SCP only
Problem:
I don't have root access to the server (i.e, I can't/don't want to change any system-wide server configuration), and I want to use scp with an alternative Identity File (e.g, .ssh/...
1
vote
1
answer
823
views
Copy from Azure machine to Azure storage
What is the most sensible way to copy data from a VM on Azure to Azure storage.
To do things on my local PC I use azure-cli but this requires some setup steps (Azure Login).
I want to be able to spin ...
0
votes
0
answers
266
views
Automation script won't work if no one is connected to a Windows VPS
I have a automation script (mouse and keyboard automation) which works with a application installed on a Windows Server 2012 VPS.
It works perfectly when I am connected to the VPS via RDP. But when I ...
-1
votes
2
answers
725
views
Does PXELinux Server can perform an Unattended Windows Installation? [closed]
Is a PXELinux Server able to perform an Unattended Windows Installation?
If it does, how to config a Windows Installation "kickstart" file?
I had deployed a PXELinux server automating Linux Distro ...
4
votes
2
answers
4k
views
How do I find the name of the second NIC using ansible ?
I'm deploying something with Ansible to a Linux host, and I need it to listen only on the second NIC on the host.
Looking at the facts available, I can see ansible_interfaces lists all of my NICs, e....
24
votes
3
answers
36k
views
Putting RSA keys into azure key vault
How can I store my key pair (typically the id_rsa and id_rsa.pub) in azure key vault.
I want to put the public key in my GIT service and allow a virtual machine to download the private key from Azure ...
3
votes
1
answer
5k
views
Powershell - Compress-archive consuming all memory
Im new to powershell and scripting.
I'm trying to compress IIS Log files (60GB total) using compress-archive cmdlet, however everytime I get the error:
"Exception of type 'System....
0
votes
1
answer
6k
views
Schedule & automate Outlook archiving for clients in Windows Domain?
Schedule & automate Outlook archiving for clients in Windows domain?
I am open to mechanisms leveraging Group Policy or even other ways if it can be executed for groups of machines without using ...
0
votes
1
answer
3k
views
How to Find Local Group Policies in the Windows Registry
I've been able to edit a security setting outlined in this article to allow Windows scheduled tasks to run as a user that isn't logged in:
SECPOL.MSC | Security Settings | Local Policies | Security ...
0
votes
0
answers
325
views
CUPS printers managing script
We are using raspberry pi (Raspbian 8) computers as a print servers.
To one raspberry can be connected up to four USB printers (zebra thermal printers).
Printers can be unplugged/switched off/...
1
vote
4
answers
17k
views
Ansible throws an “ ERROR! A worker was found in a dead state ” error
When I run a playbook that simply copies a directory from one place to another, ansible throws
ERROR! A worker was found in a dead state
Error. After some googling, it looks like this is caused by ...
1
vote
1
answer
787
views
Chef create config file based on hostname
New to chef. I have written a recipe to create a file from template based on hostname. If the hostname matches server 1 and server 2 create from template1, else create from default template. However ...
1
vote
1
answer
2k
views
Remember SSH Password after once entered without SSH Keys
I've to work a lot with SSH on different Servers where I'm not allowed to store a public Key on the remote Server. So i cant use SSH-Keys and SSH-Agent.
The Authentication is over LDAP so its always ...
3
votes
1
answer
20k
views
Ansible JSON Output
Could you please help me fetch Ansible-Playbook output in a JSON Format. I do get a JSON output if I set stdout_callback variable as "json" in ansible.cfg
But that output is not in realtime. The ...
4
votes
2
answers
340
views
How to automate sending new public key of SSH server to users?
When the key pair of an SSH server, that is, the keys at
/etc/ssh/ssh_host_(rsa|dsa|ecdsa|etc)_key
and at
/etc/ssh/ssh_host_(rsa|dsa|ecdsa|etc)_key.pub
are updated, the SSH users should be ...
2
votes
0
answers
29
views
Manage passwords stored in web configs located on a server
We have a number of servers that perform different functions and every 60 days we do password refreshes. Normally this isn't an issue but we have these passwords stored in web configs all over the ...
0
votes
1
answer
958
views
Display and edit file through jenkins
I have some json and python configuration files in my aws environment which needs to be edited or modified on a daily basis. My intention is to write a job in jenkins which can pull the current file ...
1
vote
3
answers
3k
views
ansible - Run "command db2 update database manager configuration using svcename db2c_db2inst1" as db2 user
I am setting up ansible to install a DB2 on a linux server. Everything is working except in the last step I need to run:
db2 update database manager configuration using svcename db2c_db2inst1
...
0
votes
1
answer
1k
views
How to set up automatic atomic transfers over SFTP
I'm working on a personal project. Since I don't have to worry about working with others or deploying from a development environment to a production environment, I am simply modifying files on the ...
0
votes
0
answers
487
views
Remove com port using devcon for loop
I started learning command line yesterday. My supervisor asked me to delete extra com ports.
I was trying to delete com port using command line. Right now I am using devcon.exe that is a part of ...
4
votes
1
answer
2k
views
vCenter Prevent VM Deletion
I'm starting to play with automating VMWare vCenter using PyVMomi. I want to take some base images and clone them, do some work on them, then delete them afterwards.
However, I'm terrified that I'...