Skip to content

Instantly share code, notes, and snippets.

View markuman's full-sized avatar
🐧
Linux Only - fail fast, move on

Markus Bergholz markuman

🐧
Linux Only - fail fast, move on
  • Lekker Energie GmbH
  • Berlin
View GitHub Profile
m@EC2AMAZ-TFFLO06:~$ which python
m@EC2AMAZ-TFFLO06:~$ which python3
/usr/bin/python3
m@EC2AMAZ-TFFLO06:~$ sudo ln -s /usr/bin/python3 /usr/bin/python
[sudo] password for m:
m@EC2AMAZ-TFFLO06:~$ aws configure
-bash: /mnt/c/Users/Administrator/AppData/Local/Programs/Python/Python38/Scripts/aws: c:\users\administrator\appdata\local\programs\python\python38\python.exe^M: bad interpreter: No such file or directory
$ ansible-playbook rotate_aws_1password.yml
AWS Profile? [test]: prod
onepassword item? [aws prod]:
PLAY [localhost] ****************************************************************************************************************************************
TASK [update iam password] ******************************************************************************************************************************
changed: [localhost]
$ ansible-playbook rotate_aws_keys.yml
AWS Profile? [test]:
PLAY [localhost] ****************************************************************************************************************************************
TASK [Get the current caller identity facts] ************************************************************************************************************
ok: [localhost]
TASK [read current credentials] *************************************************************************************************************************
---
- hosts: localhost
connection: local
gather_facts: False
vars:
duration: 7200
vars_prompt:
- name: TOTP
{
"login": "myuser",
"site": "aws-123456789",
"lowercase": true,
"uppercase": true,
"symbols": true,
"numbers": true,
"counter": 20191201,
"length": 32
}
[Unit]
Description=NFS-Ganesha file server
Documentation=http://github.com/nfs-ganesha/nfs-ganesha/wiki
After=rpcbind.service nfs-ganesha-lock.service
Wants=rpcbind.service nfs-ganesha-lock.service
Conflicts=nfs.target
After=nfs-ganesha-config.service
Wants=nfs-ganesha-config.service
Compiling mdbook v0.3.5
error[E0658]: use of unstable library feature 'range_contains': recently added as per RFC (see issue #32311)
--> /root/.cargo/registry/src/github.com-1ecc6299db9ec823/mdbook-0.3.5/src/utils/string.rs:66:19
|
66 | if !range.contains(&index) {
| ^^^^^^^^
error: aborting due to previous error
For more information about this error, try `rustc --explain E0658`.
[m@markus-pc .local]$ grep print ./lib/python3.7/site-packages/ansible/module_utils/aws/elbv2.py
print("modified_rule:")
print(new_rule['Actions'])
print("modified_rule:")
print(new_rule['Actions'])
print("modified_rule:")
print(new_rule['Actions'])
[m@markus-pc .local]$
-- module_utils/aws/elbv2.py 2019-11-22 11:47:07.809636272 +0100
+++ /tmp/elbv2.py.2.9.1 2019-11-22 10:26:21.923061699 +0100
@@ -713,7 +713,8 @@
for current_condition in current_conditions:
if current_condition.get('SourceIpConfig'):
- if current_condition['Field'] == condition['Field'] and current_condition['SourceIpConfig']['Values'][0] == condition['SourceIpConfig']['Values'][0]:
+ if (current_condition['Field'] == condition['Field'] and
+ current_condition['SourceIpConfig']['Values'][0] == condition['SourceIpConfig']['Values'][0]):
condition_found = True