Skip to content

Instantly share code, notes, and snippets.

View Prophecy67's full-sized avatar
🏠
Working from home

Rene Benner Prophecy67

🏠
Working from home
View GitHub Profile

Keybase proof

I hereby claim:

  • I am prophecy67 on github.
  • I am prophecy67 (https://keybase.io/prophecy67) on keybase.
  • I have a public key ASDDQf_ba-vAdn3bTwkhvfxLMkMORXsskt6IWyCTJkbQrwo

To claim this, I am signing this object:

@Prophecy67
Prophecy67 / hosts.j2
Created December 23, 2015 16:37 — forked from qrtt1/hosts.j2
update hosts file by Ansible
127.0.0.1 localhost localhost.localdomain localhost4 localhost4.localdomain4
::1 localhost localhost.localdomain localhost6 localhost6.localdomain6
# variables reflection by setup module
{{nat_ip_address}} {{ansible_fqdn}} {{ansible_hostname}}
# other IP Mappings
150625 23:40:03 mysqld_safe Logging to '/var/log/mariadb/mariadb.log'.
150625 23:40:03 mysqld_safe Starting mysqld daemon with databases from /data/mysql
150625 23:40:03 mysqld_safe Starting mysqld daemon with databases from /data/mysql
150625 23:40:03 mysqld_safe WSREP: Running position recovery with --log_error='/data/mysql/wsrep_recovery.xNCXf4' --pid-file='/data/mysql/servername1-recover.pid'
150625 23:40:03 mysqld_safe WSREP: Running position recovery with --log_error='/data/mysql/wsrep_recovery.xNCXf4' --pid-file='/data/mysql/servername1-recover.pid'
nohup: ignoring input
150625 23:40:03 mysqld_safe WSREP: Failed to recover position: '2015-06-25 23:40:03 7f97e100f880 InnoDB: Warning: Using innodb_locks_unsafe_for_binlog is DEPRECATED. This option may be removed in future releases. Please use READ COMMITTED transaction isolation level instead, see http://dev.mysql.com/doc/refman/5.6/en/set-transaction.html.
150625 23:40:03 [Note] InnoDB: Using mutexes to ref count buffer pool pages
150625 23:40:03 [Note]
SSH password:
sudo password [defaults to SSH password]:
ERROR: expecting dict; got: [{'name': 'Installing Check_MK Agent', 'apt': 'deb=/tmp/{{item}} state=present', 'with_items': ['check-mk-agent_1.2.4p5-2_all.deb']}], error in /tmp/ansible/zenloadbalancer/tasks/loadbalancers.yaml
/tmp/ansible/zenloadbalancer/tasks/loadbalancers.yaml contains:
---
# Playbook used for installing Check_MK on LoadBalancers
echo "ttyS0" > /etc/securetty
vi /etc/grub.conf
# Add console=ttyS0 to the end of kernel line(s)
vi /etc/sysconfig/init
# Edit ACTIVE_CONSOLES to look like:
ACTIVE_CONSOLES="/dev/tty[1-6] /dev/ttyS0"
# If on a live system, do the following