AWS

環境
AWS Config
AWS S3

エラー現象
関連する AWS Config API
PutDeliveryChannel

AWS API エラーコード
Insu ...

AWS

環境
AWS Backup

操作方法
1.AWSコンソール画面に移動します。

2.AWS Backup コンソールのナビゲーションペインで、 を選択します。

3. ページで、バックア ...

Ansible

環境
Ansible 2.9
RHEL8
Python 3.8

構文

yum : name:パッケージ名 state:absent

使用例

- hosts: all become: ...

Ansible

環境
Ansible 2.9
RHEL8
Python 3.8

構文

yum: name: - package1 - package2

使用例
パッケージsquid、perl、ht ...

Ansible

環境
Ansible 2.9
RHEL8
Python 3.8

構文

yum:name: '*'state: latest

name: ‘*’ かつ state: ...

Ansible

環境
Ansible 2.9
RHEL8
Python 3.8

構文
yum:
name:パッケージ名
state:present

操作例
パッケージht ...

Azure

環境
Microsoft Azure
Azure Monitor

エラー現象
作成 xxxできませんでした。
エラー:サブスクリプションは、名前空間’microsoft.insi ...

AWS

環境
AWS EC2
S3

操作方法
1.IAMロールに権限を追加する
追加IAMポリシー

{ "Version": "2012-10-17", "Statement": , "Res ...

Ansible

環境
Ansible
Playbook

概要
recurse: yes
recurseオプションにyesを指定することで再帰的にディレクトリを作成します。

操作例

---- ...

Ansible

環境
Ansible
Playbook

正規表現
regexp: ‘^%wheel’

操作例
/etc/sudoers 内の ‘^%wheel ...

Ansible

環境
Ansible
Playbook

操作例
/etc/php.iniのdate_timezoneを’Asia/Tokyo’に変えます。

サンプルコード

- name: "PHP ...

Ansible

環境
Ansible
Playbook

操作例
ディレクトリ/etc/cft を作成する
サンプルコード

- hosts: linux gather_facts: no become: ...

Ansible

環境
Ansible
Playbook

操作例
ファイル/etc/ctn.conf をファイルを削除する
サンプルコード

- hosts: testhss gather_facts: ...

Ansible

環境
Ansible

操作例
ファイル/etc/cft.conf の所有者、所有グループ、パーミッションを設定する

サンプルコード

- hosts: linux gather_facts: ...

Ansible

環境
Serverspec
Ansible

構文
describe host(ホスト変数名) do
処理コード

操作例

tthost = 'server.arkgame.c ...

Ansible

環境
Serverspec
Ansible

操作方法
1.spec_helper.rbの定義

def os_platform_amazon? Specinfra.backend.run_com ...

Ansible

環境
Serverspec
Ansible

操作方法
ディレクトリのオーナーとパーミッションを確認する

homedir = "/home/ec2-user"describe file("#{h ...

Ansible

環境
Serverspec
Ansible

操作例
1.ファイルの中身が指定の文字列にマッチするか確認する

describe file('/etc/sysconfig/clock') do i ...