<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title><![CDATA[Linux Forum &mdash; ansible playbook]]></title>
		<link>https://linuxforum.ru/viewtopic.php?id=41063</link>
		<atom:link href="https://linuxforum.ru/extern.php?action=feed&amp;tid=41063&amp;type=rss" rel="self" type="application/rss+xml" />
		<description><![CDATA[Недавние сообщения в теме «ansible playbook».]]></description>
		<lastBuildDate>Fri, 17 Mar 2023 10:19:59 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: ansible playbook]]></title>
			<link>https://linuxforum.ru/viewtopic.php?pid=471511#p471511</link>
			<description><![CDATA[<p>Возможно это поможет:<br />По первым двум ссылкам вопросы и к ним ответы в комментариях.<br /><a href="https://stackoverflow.com/questions/33280244/ssh-error-permission-denied-publickey-password-in-ansible">https://stackoverflow.com/questions/332 … in-ansible</a><br /><a href="https://stackoverflow.com/questions/71694179/failed-to-connect-to-the-host-permission-denied-publickey-password-unreacha">https://stackoverflow.com/questions/716 … d-unreacha</a><br />Либо это:<br /><a href="https://yongbo-tan.gitbooks.io/ansible-python/content/issues-and-debugs/ddd.html">https://yongbo-tan.gitbooks.io/ansible- … s/ddd.html</a></p>]]></description>
			<author><![CDATA[null@example.com (MozgFx)]]></author>
			<pubDate>Fri, 17 Mar 2023 10:19:59 +0000</pubDate>
			<guid>https://linuxforum.ru/viewtopic.php?pid=471511#p471511</guid>
		</item>
		<item>
			<title><![CDATA[Re: ansible playbook]]></title>
			<link>https://linuxforum.ru/viewtopic.php?pid=471510#p471510</link>
			<description><![CDATA[<div class="quotebox"><cite>MozgFx пишет:</cite><blockquote><p>tasks: вместо &quot;task:</p></blockquote></div><p>Помогло, спасибо!<br /><strong>*** Добавлено: 16.03.2023 05:56:50 ***</strong></p><div class="quotebox"><cite>MozgFx пишет:</cite><blockquote><p>либо новые вопросы</p></blockquote></div><p><div class="termtitle" style="font-family: sans-serif; position:relative; height:auto; width:auto; background:#3A4061; color:#FFFFFF; padding: 1px;"><b> Консоль:</b></div>
<div class="termcont" style="font-family: Terminus; position:relative; height:auto; width:auto; overflow-x:scroll; white-space: nowrap ; overflow-y:auto;background:#000000; color:#4EF44E; line-height:1.2; padding: 3px; font-size: 1rem; max-height: 60vh">localhost:/etc/ansible # ls<br />ansible.cfg&nbsp; hosts&nbsp; MyPlayBook.yml<br />localhost:/etc/ansible # ansible-playbook MyPlayBook.yml</p><p>PLAY [My ping] ***************************************************************************************************************************************************************************************************************************************************************</p><p>TASK [Gathering Facts] *******************************************************************************************************************************************************************************************************************************************************<br />fatal: [192.168.122.125]: UNREACHABLE! =&gt; {&quot;changed&quot;: false, &quot;msg&quot;: &quot;Failed to connect to the host via ssh: root@192.168.122.125: Permission denied (publickey,password,keyboard-interactive).&quot;, &quot;unreachable&quot;: true}</p><p>PLAY RECAP *******************************************************************************************************************************************************************************************************************************************************************<br />192.168.122.125&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; : ok=0&nbsp; &nbsp; changed=0&nbsp; &nbsp; unreachable=1&nbsp; &nbsp; failed=0&nbsp; &nbsp; skipped=0&nbsp; &nbsp; rescued=0&nbsp; &nbsp; ignored=0&nbsp; &nbsp;</p><p></div> Собственно по этой причине я и задавал вопрос <a href="https://linuxforum.ru/viewtopic.php?id=41061">ssh root</a> Насколько я понимаю, если между хостами организована авторизация по ключу, то ansible должен работать без указанаия пароля удаленного хоста?<br /></p>]]></description>
			<author><![CDATA[null@example.com (sangraf)]]></author>
			<pubDate>Thu, 16 Mar 2023 02:56:50 +0000</pubDate>
			<guid>https://linuxforum.ru/viewtopic.php?pid=471510#p471510</guid>
		</item>
		<item>
			<title><![CDATA[Re: ansible playbook]]></title>
			<link>https://linuxforum.ru/viewtopic.php?pid=471507#p471507</link>
			<description><![CDATA[<p>пробовали писать <strong>tasks:</strong> вместо &quot;task:&quot; сначала не понял вообще где вопрос. <br />но судя по коду нужно исправить сначала это, а далее либо будет результат, либо новые вопросы, но уже с другой ошибкой.<br />И старайтесь придерживаться синтаксиса разметки с отступами<strong><span style="color: red">*</span></strong>. Во первых читать удобнее, во сторых это тоже вызывает проблемы, судя по описанию. Как то так должно выглядеть.<br /><div class="termtitle" style="font-family: sans-serif; position:relative; height:auto; width:auto; background:#3A4061; color:#FFFFFF; padding: 1px;"><b> Консоль:</b></div>
<div class="termcont" style="font-family: Terminus; position:relative; height:auto; width:auto; overflow-x:scroll; white-space: nowrap ; overflow-y:auto;background:#000000; color:#4EF44E; line-height:1.2; padding: 3px; font-size: 1rem; max-height: 60vh"> - name: My ping<br />&nbsp; &nbsp;hosts: webservers<br />&nbsp; #&nbsp; become: yes<br />&nbsp; &nbsp;remote_user: root<br />&nbsp; &nbsp;tasks:<br />&nbsp; &nbsp; &nbsp;- name: task ping<br />&nbsp; &nbsp; &nbsp; &nbsp;ping:</div></p><p><strong><span style="color: red">*</span></strong><a href="https://netology-university.bitbucket.io/codestyle/python/">Правила оформления Python-кода</a></p>]]></description>
			<author><![CDATA[null@example.com (MozgFx)]]></author>
			<pubDate>Mon, 13 Mar 2023 19:02:19 +0000</pubDate>
			<guid>https://linuxforum.ru/viewtopic.php?pid=471507#p471507</guid>
		</item>
		<item>
			<title><![CDATA[ansible playbook]]></title>
			<link>https://linuxforum.ru/viewtopic.php?pid=471504#p471504</link>
			<description><![CDATA[<div class="codebox"><pre><code> - name: My ping
   hosts: webservers
  #  become: yes
   remote_user: root

   task:

   - name: task ping
     ping:</code></pre></div><p>выдает:<br /><div class="termtitle" style="font-family: sans-serif; position:relative; height:auto; width:auto; background:#3A4061; color:#FFFFFF; padding: 1px;"><b> Консоль:</b></div>
<div class="termcont" style="font-family: Terminus; position:relative; height:auto; width:auto; overflow-x:scroll; white-space: nowrap ; overflow-y:auto;background:#000000; color:#4EF44E; line-height:1.2; padding: 3px; font-size: 1rem; max-height: 60vh">ERROR! &#039;task&#039; is not a valid attribute for a Play</p><p>The error appears to be in &#039;/etc/ansible/MyPlayBook.yml&#039;: line 1, column 4, but may<br />be elsewhere in the file depending on the exact syntax problem.</p><p>The offending line appears to be:</p><br /><p> - name: My ping<br />&nbsp; &nbsp;^ here<br /></div></p>]]></description>
			<author><![CDATA[null@example.com (sangraf)]]></author>
			<pubDate>Mon, 13 Mar 2023 05:39:52 +0000</pubDate>
			<guid>https://linuxforum.ru/viewtopic.php?pid=471504#p471504</guid>
		</item>
	</channel>
</rss>
