-
namespaces - overview of Linux namespaces http://man7.org/linux/man-pages/man7/namespaces.7.html
-
mount_namespaces - overview of Linux mount namespaces
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from __future__ import (absolute_import, division, print_function) | |
__metaclass__ = type | |
import getpass | |
import logging | |
import logging.config | |
import os | |
import socket | |
try: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Задание | |
## Окружение | |
- Есть Host-A - Ansible Controller - с которого запускаем Ansible | |
- Есть Host-B - целевой хост, на котором выполняем действия | |
- На Host-A используется Ansible 2.4.x (установлен через pip) | |
- На Host-B - Ubuntu 16.04 + Docker-CE 17.06.2 | |
- Есть Memcached, который доступен с Host-A (можно запустить на Host-B в качестве контейнера) | |
- В Memcached лежит ключ `filepath` со значением `/usr/share/nginx/html/cron.html` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /bin/bash | |
# Description: show dependency tree | |
# Author: damphat, bykva | |
if [ $# != 1 ]; then | |
echo 'Usage: apt-rdepends-tree <package>' | |
echo 'Required packages: apt-rdepends' | |
exit 1 | |
fi |
Скрипт не претендует на истину первой инстанции
Да, я знаю что есть способ ${the_best_pg_backup_method}
Это просто скрипт которым я поделился - хочешь пользуйся, не хочешь - иди мимо