cat and curl large JSON value from gitlab ci
There are many questions on how to post JSON via curl. And I am able to send one word as json but not the whole text. My requirement is to comment a merge request when one job fail in our…
There are many questions on how to post JSON via curl. And I am able to send one word as json but not the whole text. My requirement is to comment a merge request when one job fail in our…
On Ubuntu 18 server in directory /home/adminuser/keys are 5 files that contain key parts: /home/adminuser/key/ |- unseal_key_0 |- unseal_key_1 |- unseal_key_2 |- unseal_key_3 |- unseal_key_4 File contents: 1bbeaafab5037a287bde3e5203c8b2cd205f4cc55b4fcffe7931658dc20d8cdcdf bdf7a6ee4c493aca5b9cc2105077ec67738a0e8bf21936abfc5d1ff8080b628fcb 545c087d3d59d02556bdbf8690c8cc9faafec0e9766bb42de3a7884159356e91b8 053207b0683a8a2886129f7a1988601629a9e7e0d8ddbca02333ce08f1cc7b3887 2320f6275804341ebe5d39a623dd309f233e454b4453c692233ca86212a3d40b5f Part of Ansible playbook (task): - name: Reading…
I have a long config file which looks like: <some stuff before our example> 'Realtime' => [ 'foo' => 'bar', 'enabled' => true, 'lorem' => 'ipsum' ], <some stuff after our example> The above is a large config php file…
I am using a module to create an autoscaling group that spins up instances and provides them a launch script to run. The launch script is relatively simple, just a few apt gets/installs, create a user, and write some files.…
The file /var/cpanel/mainip contains the main IP of my server and nothing else. The file /etc/csf/csf.blocklists contains a list of firewall blocklists, and part of the file contains a line with an example IP address 1.2.3.4 Normally when installing CSF…
When I run cat directly I get nice formatted text exactly as in the file. $ cat hostnamectl.output Static hostname: linuxtb3 Icon name: computer-vm Chassis: vm Machine ID: 76073c1aa8cf48ed900c39d1992fbb73 Boot ID: 24db61d58fd5491bbf82a4bb743e5b72 Virtualization: kvm Operating System: CentOS Linux 7 (Core)…