Skip to content

Instantly share code, notes, and snippets.

Sep 12 11:54:48 auth slapd[2686]: conn=1161 fd=19 ACCEPT from IP=[fd42:2688:d9d3:bd1d:216:3eff:fef0:7bd7]:53930 (IP=[::]:389)
Sep 12 11:54:48 auth slapd[2686]: conn=1161 op=0 BIND dn="cn=test.user,ou=staff,dc=dashlabs,dc=org" method=128
Sep 12 11:54:48 auth slapd[2686]: conn=1161 op=0 BIND dn="cn=test.user,ou=staff,dc=dashlabs,dc=org" mech=SIMPLE ssf=0
Sep 12 11:54:48 auth slapd[2686]: conn=1161 op=0 RESULT tag=97 err=0 text=
Sep 12 11:54:48 auth slapd[2686]: conn=1161 op=1 BIND anonymous mech=implicit ssf=0
Sep 12 11:54:48 auth slapd[2686]: conn=1161 op=1 BIND dn="" method=128
Sep 12 11:54:48 auth slapd[2686]: conn=1161 op=1 RESULT tag=97 err=0 text=
Sep 12 11:54:48 auth slapd[2686]: conn=1161 op=2 SRCH base="cn=test.user,ou=staff,dc=dashlabs,dc=org" scope=0 deref=0 filter="(objectClass=*)"
Sep 12 11:54:48 auth slapd[2686]: conn=1161 op=2 SEARCH RESULT tag=101 err=0 nentries=1 text=
Sep 12 11:54:48 auth slapd[2686]: conn=1161 op=3 SRCH base="cn=staff,dc=dashlabs,dc=org" scope=2 deref=0 filter="(&(objectClass
iptables -t nat -A PREROUTING -p tcp -i ens5 --dport 80 -j DNAT --to-destination 10.116.23.86:80
----------------------------------------------------------------------------------------------------
- name: redirect http to web
iptables:
table: nat
chain: PREROUTING
in_interface: ens5
protocol: tcp
root@ip-172-31-25-166:/etc/ansible/playbooks# ansible all -i inven2.py -m ping
[WARNING]: * Failed to parse /etc/ansible/playbooks/inven2.py with ini plugin: /etc/ansible/playbooks/inven2.py:23: Expected key=value host variable assignment, got: os
[WARNING]: Unable to parse /etc/ansible/playbooks/inven2.py as an inventory source
[WARNING]: No inventory was parsed, only implicit localhost is available
[WARNING]: provided hosts list is empty, only localhost is available. Note that the implicit localhost does not match 'all'
- hosts: localhost
connection: local
tasks:
- name: Create a started container
lxd_container:
name: web
state: started
source:
type: image
mode: pull
root@ip-172-31-25-166:/etc/ansible/playbooks# ansible-playbook test.cfg
[WARNING]: provided hosts list is empty, only localhost is available. Note that the implicit localhost does not match 'all'
PLAY [localhost] **********************************************************************************************************************************************************************************************
TASK [Gathering Facts] ****************************************************************************************************************************************************************************************
ok: [localhost]
TASK [Create a started container] *****************************************************************************************************************************************************************************
- hosts: localhost
connection: local
tasks:
- name: Create a started container
lxd_container:
name: web
state: started
source:
type: image
mode: pull
Welcome to Ubuntu 18.04.1 LTS (GNU/Linux 4.15.0-1020-aws x86_64)
* Documentation: https://help.ubuntu.com
* Management: https://landscape.canonical.com
* Support: https://ubuntu.com/advantage
System information as of Thu Aug 30 08:00:54 UTC 2018
System load: 0.0 Processes: 109
Usage of /: 3.1% of 96.88GB Users logged in: 0
[monotoko@monotoko-pc Downloads]$ gpg --recv-keys 474E22316ABF4785A88C6E8EA2C794A986419D8A
gpg: keyserver receive failed: General error
/usr/bin/mandb: zcat < /usr/share/man/man5/deb-buildinfo.5.gz: Bad system call (core dumped)
/usr/bin/mandb: zcat: Bad system call (core dumped)
/usr/bin/mandb: zcat < /usr/share/man/man5/deb-buildinfo.5.gz: Bad system call (core dumped)
/usr/bin/mandb: /usr/lib/man-db/manconv -f UTF-8:ISO-8859-1 -t UTF-8//IGNORE -q: Bad system call (core dumped)
/usr/bin/mandb: zcat < /usr/share/man/man5/deb-changelog.5.gz: Bad system call (core dumped)
export GTK_IM_MODULE=fcitx
export QT_IM_MODULE=fcitx
export XMODIFIERS=@im=fcitx
fcitx -d -r