Skip to content

Instantly share code, notes, and snippets.

View cjac's full-sized avatar

C.J. Collier cjac

View GitHub Profile
cjac@sh0:~/ansible$ cat apt-upgrade.yml
---
- name: apt upgrade
apt:
hosts: all
upgrade: dist
update_cache: True
cjac@sh0:~/ansible$ ansible-playbook apt-upgrade.yml
ERROR! 'apt' is not a valid attribute for a Play
cjac@sh0:~/ansible$ cat apt-upgrade.yml
- apt: name=* upgrade=dist update_cache=True
cjac@sh0:~/ansible$ ansible-playbook apt-upgrade.yml
ERROR! 'apt' is not a valid attribute for a Play
The error appears to be in '/home/cjac/ansible/apt-upgrade.yml': line 1, column 3, but may
be elsewhere in the file depending on the exact syntax problem.
The offending line appears to be:
cjac@sh0:~$ sudo fdisk -l /dev/vda
[sudo] password for cjac:
Disk /dev/vda: 4.3 GiB, 4617928704 bytes, 9019392 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: dos
Disk identifier: 0x4401fcaa
Device Boot Start End Sectors Size Id Type
root@mini:~# nft list table ip filter
table ip filter {
chain INPUT {
type filter hook input priority 0; policy accept;
}
chain FORWARD {
type filter hook forward priority 0; policy accept;
}
mini:
root@mini:~# iptables-legacy-save
root@mini:~# nft list tables
table ip filter
table ip6 filter
table bridge filter
tiny:
root@tiny:~# iptables-legacy-save
root@tiny:~# nft list tables
mini:
2020-08-02 09:45:20.110 7f70f6c99700 -1 mon.1@-1(probing) e0 get_health_metrics reporting 2 slow ops, oldest is log(1 entries from seq 1 at 2020-08-02 09:34:52.775194)
2020-08-02 09:45:20.370 7f70f4494700 1 mon.1@-1(probing) e0 adding peer v1:100.64.79.64:6789/0 to list of hints
2020-08-02 09:45:21.293 7f70f4494700 1 mon.1@-1(probing) e0 adding peer v1:100.64.79.123:6789/0 to list of hints
2020-08-02 09:45:22.373 7f70f4494700 1 mon.1@-1(probing) e0 adding peer v1:100.64.79.64:6789/0 to list of hints
2020-08-02 09:45:23.293 7f70f4494700 1 mon.1@-1(probing) e0 adding peer v1:100.64.79.123:6789/0 to list of hints
2020-08-02 09:45:24.373 7f70f4494700 1 mon.1@-1(probing) e0 adding peer v1:100.64.79.64:6789/0 to list of hints
2020-08-02 09:45:25.109 7f70f6c99700 -1 mon.1@-1(probing) e0 get_health_metrics reporting 2 slow ops, oldest is log(1 entries from seq 1 at 2020-08-02 09:34:52.775194)
2020-08-02 09:45:25.293 7f70f4494700 1 mon.1@-1(probing) e0 adding peer v1:100.64.79.123:6789/0 to list of h
# Generated by xtables-save v1.8.3 on Sun Aug 2 09:40:13 2020
*filter
:INPUT ACCEPT [0:0]
:FORWARD ACCEPT [0:0]
:OUTPUT ACCEPT [0:0]
-A INPUT -i virbr0 -p udp -m udp --dport 53 -j ACCEPT
-A INPUT -i virbr0 -p tcp -m tcp --dport 53 -j ACCEPT
-A INPUT -i virbr0 -p udp -m udp --dport 67 -j ACCEPT
-A INPUT -i virbr0 -p tcp -m tcp --dport 67 -j ACCEPT
-A FORWARD -d 192.168.122.0/24 -o virbr0 -m conntrack --ctstate RELATED,ESTABLISHED -j ACCEPT
root@mini:~# iptables-save
# Generated by xtables-save v1.8.2 on Sun Aug 2 09:39:50 2020
*filter
:INPUT ACCEPT [0:0]
:FORWARD ACCEPT [0:0]
:OUTPUT ACCEPT [0:0]
COMMIT
# Completed on Sun Aug 2 09:39:50 2020
[global]
; use cephx or none
auth supported = cephx
keyring = /etc/ceph/keyring.admin
fsid = 37ff2273-d55b-48ca-9e5e-89a2951c8197
mon initial members = mini, tiny, ogion
mon host = 100.64.79.122, 100.64.79.123, 100.64.70.64
public network = 100.64.79.0/24
auth cluster required = cephx
auth service required = cephx
{
"name": "1",
"rank": -1,
"state": "probing",
"election_epoch": 0,
"quorum": [],
"features": {
"required_con": "0",
"required_mon": [],
"quorum_con": "0",