3
votes
Ansible compare two value from two dictionnaries
For example, given the static_dir for testing
static_dir:
id1: 123
id2: 456
id5: 789
I assume the results is a list. For example,
result_dir:
results:
- item: ...
3
votes
Execute synchronize module in Ansible automation platform results in file not found
The error says:
rsync: link_stat "/tmp/memo.txt" failed: No such file or directory
Short answer: The file /tmp/memo.txt is missing on the controller.
Details: The first example shows how ...
2
votes
Accepted
Linux, do I need if, else, or statements to accomplish automation of compiling programs from source
If you know by advance that you have the prerequisite, you can do this.
This is how works archlinux PKGBUILDs.
You can use CI-CD in your gitlab/github to test that the compilation is successful.
If ...
2
votes
Why doesn't cron run the commands in another user's crontab?
Usually cron do not handle well the & and other symbols so the best you can do is to create script like. Also consider using absolute paths everywhere:
#!/bin/bash
source /your/home/directory/....
2
votes
Backup of organization's GitHub repository
https://docs.github.com/en/repositories/archiving-a-github-repository/backing-up-a-repository
Backing up a repository
You can use the API or a third-party tool to back up your repository.
To download ...
2
votes
Net group command
Use Powershell for this.
Read in the group and users in a variable first. The users can either be hardcoded or like for the group - we can apply a filter, query AD and add the returned user(s) to the ...
1
vote
Accepted
Troubleshooting Wake-on-Lan on Dell Microplex
USB power configuration isn't relevant. Internal NICs are connectec via PCIe, so you need to configure PCIe power management, something along Power On by PCIe, Power on by PME, or even Wake on LAN.
...
1
vote
How to delete files automatically from a NAS
You could run a bash script with crontab that can delete files older than specific number of days:
#!/bin/bash
# Directory to remove files from
directory="/path/to/your/directory"
days=X
...
1
vote
Accepted
Where does Packer look for scripts?
A provisioner needs to be declared like this
"provisioners": [
{
"type": "powershell",
"script": "path/to/your/script.ps1"
}
//...
1
vote
Why doesn't cron run the commands in another user's crontab?
You need to escape % sings with the backslashes \. That's why it doesn't run the command as expected.
It might be a good idea to use absolute paths instead of ~/relative/paths.
* 12 * * * runs the ...
1
vote
How do I automate a daily download from an SFTP server? Currently trying Power Automate
ssh support in MS-Windows is minimal.
I believe that you may be able to solve your problem with pscp - this comes as part of the PuTTy distribution. You can specify a "keyboard interactive" ...
1
vote
Ansible throws an “ ERROR! A worker was found in a dead state ” error
This solved my issue:
export OBJC_DISABLE_INITIALIZE_FORK_SAFETY=YES
Only top scored, non community-wiki answers of a minimum length are eligible
Related Tags
automation × 644linux × 98
windows × 86
scripting × 55
powershell × 53
ansible × 51
deployment × 41
ubuntu × 35
azure × 29
installation × 26
ssh × 25
bash × 23
automated-install × 19
active-directory × 16
amazon-web-services × 16
configuration × 16
puppet × 16
backup × 15
virtual-machines × 15
windows-server-2008-r2 × 14
networking × 13
virtualization × 13
chef × 13
configuration-management × 12
windows-server-2008 × 11