ctrlansible2
This commit is contained in:
105
histo-shell
Normal file
105
histo-shell
Normal file
@@ -0,0 +1,105 @@
|
|||||||
|
1 date
|
||||||
|
2 sudo date -s 17:05
|
||||||
|
3 ls
|
||||||
|
4 cd test/
|
||||||
|
5 ls
|
||||||
|
6 more appache.yml
|
||||||
|
7 ssh web1
|
||||||
|
8 ssh infra
|
||||||
|
9 ssh web2
|
||||||
|
10 ls
|
||||||
|
11 nano appache.yml
|
||||||
|
12 more hosts
|
||||||
|
13 ls
|
||||||
|
14 ansible-playbook -i hosts
|
||||||
|
15 ansible-playbook -i hosts appache.yml
|
||||||
|
16 nano appache.yml
|
||||||
|
17 ls
|
||||||
|
18 nano appache.yml
|
||||||
|
19 sudo apt update
|
||||||
|
20 sudo apt install ansible -y
|
||||||
|
21 nano hosts
|
||||||
|
22 nano playbook.yml
|
||||||
|
23 mkdir files
|
||||||
|
24 nano files/resolv.conf
|
||||||
|
25 clear
|
||||||
|
26 ssh-keygen -t ed25519
|
||||||
|
27 ip a
|
||||||
|
28 vagrant ssh srv
|
||||||
|
29 vagrant@192.168.0.42
|
||||||
|
30 ssh vagrant@192.168.0.42
|
||||||
|
31 ssh-keygen -t ED25519
|
||||||
|
32 ssh vagrant@192.168.0.42
|
||||||
|
33 clear
|
||||||
|
34 nano playbook.yml
|
||||||
|
35 nano files/resolv.conf
|
||||||
|
36 nano playbook.yml
|
||||||
|
37 nano /etc/ssh/sshd_config
|
||||||
|
38 sudo nano /etc/ssh/sshd_config
|
||||||
|
39 ssh vagrant@192.168.0.42
|
||||||
|
40 nano playbook.yml
|
||||||
|
41 ls
|
||||||
|
42 ansible-playbook -i hosts playbook.yml -v
|
||||||
|
43 ansible-playbook -i hosts playbook.yml -vv
|
||||||
|
44 ansible-playbook -i hosts playbook.yml -vvv
|
||||||
|
45 nano hosts
|
||||||
|
46 nano playbook.yml
|
||||||
|
47 ansible-playbook -i hosts playbook.yml -vvv
|
||||||
|
48 nano hosts
|
||||||
|
49 ansible-playbook -i hosts playbook.yml -vvv
|
||||||
|
50 sudo apt update
|
||||||
|
51 sudo apt install sshpass -y
|
||||||
|
52 ansible-playbook -i hosts playbook.yml -vvv
|
||||||
|
53 nano /etc/ssh/sshd_config
|
||||||
|
54 sudo nano /etc/ssh/sshd_config
|
||||||
|
55 ansible-playbook -i hosts playbook.yml -vvv
|
||||||
|
56 ansible -i hosts srv -m ping
|
||||||
|
57 expor
|
||||||
|
58 export http_proxy=http://10.121.38.1:8080
|
||||||
|
59 export https_proxy=http://10.121.38.1:8080
|
||||||
|
60 git clone https://gitea.lyc-lecastel.fr/charlie.alves/ct-ansible-ca.git
|
||||||
|
61 git clon https://gitea.lyc-lecastel.fr/charlie.alves/ct-ansible-ca.git
|
||||||
|
62 sudo git clone https://gitea.lyc-lecastel.fr/charlie.alves/ct-ansible-ca.git
|
||||||
|
63 sudo apt install gitea
|
||||||
|
64 sudo apt install git
|
||||||
|
65 sudo git clone https://gitea.lyc-lecastel.fr/charlie.alves/ct-ansible-ca.git
|
||||||
|
66 git commit -m "ctrlansible"
|
||||||
|
67 sudo git commit -m "ctrlansible"
|
||||||
|
68 git add
|
||||||
|
69 ls
|
||||||
|
70 mv playbook.yml hosts files/ ct-ansible-ca/
|
||||||
|
71 sudo mv playbook.yml hosts files/ ct-ansible-ca/
|
||||||
|
72 cd ct-ansible-ca/
|
||||||
|
73 ls
|
||||||
|
74 gti add.
|
||||||
|
75 git add.
|
||||||
|
76 git add .
|
||||||
|
77 git config --global user.name "charlie.alves"
|
||||||
|
78 git config --global user.email charliealves3740@gmail.com
|
||||||
|
79 git add .
|
||||||
|
80 git config --global user.name charlie.alves
|
||||||
|
81 git config --global user.email charliealves3740@gmail.com
|
||||||
|
82 git add .
|
||||||
|
83 [200~git config --global --add safe.directory /home/vagrant/ct-ansible-ca
|
||||||
|
84 cd ..
|
||||||
|
85 git config --global --add safe.directory /home/vagrant/ct-ansible-ca
|
||||||
|
86 cd ct-ansible-ca/
|
||||||
|
87 git add .
|
||||||
|
88 ls -al
|
||||||
|
89 sudo chown -R vagrant:vagrant *
|
||||||
|
90 git add .
|
||||||
|
91 ls -al
|
||||||
|
92 sudo chmod 755 -R ./*
|
||||||
|
93 ls -al
|
||||||
|
94 git add .
|
||||||
|
95 ls -al
|
||||||
|
96 sudo chown -R vagrant:vagrant .git/
|
||||||
|
97 ls -al
|
||||||
|
98 cd ..
|
||||||
|
99 sudo chown -R vagrant:vagrant ./ct-ansible-ca/
|
||||||
|
100 cd ct-ansible-ca/
|
||||||
|
101 ls -al
|
||||||
|
102 git add .
|
||||||
|
103 git commit -am "ctrlansible"
|
||||||
|
104 git push
|
||||||
|
105 history > histo-shell
|
||||||
Reference in New Issue
Block a user